Monolog Telegram handler reconfigured for prod environment. New 'subscribers_update' channel.
This commit is contained in:
parent
93071b6be8
commit
144a535c6b
|
@ -13,15 +13,25 @@ monolog:
|
|||
main:
|
||||
type: fingers_crossed
|
||||
action_level: error
|
||||
handler: nested
|
||||
nested:
|
||||
handler: main_grouped
|
||||
main_grouped:
|
||||
type: group
|
||||
members: [rotated_file, telegram_deduplicated]
|
||||
bubble: false
|
||||
rotated_file:
|
||||
type: rotating_file
|
||||
path: "%kernel.logs_dir%/%kernel.environment%.log"
|
||||
max_files: 30
|
||||
level: debug
|
||||
telegram_deduplicated:
|
||||
type: deduplication
|
||||
action_level: error
|
||||
handler: telegram
|
||||
time: 600
|
||||
telegram:
|
||||
type: service
|
||||
id: app.log.telegram_handler
|
||||
action_level: error
|
||||
# for commands
|
||||
console:
|
||||
type: console
|
||||
|
|
|
@ -44,6 +44,8 @@ services:
|
|||
- '@logger'
|
||||
- '@app.point.subscription_repository'
|
||||
- '@app.point.subscription_record_repository'
|
||||
tags:
|
||||
- { name: monolog.logger, channel: subscribers_update }
|
||||
|
||||
|
||||
# Console commands
|
||||
|
@ -57,7 +59,9 @@ services:
|
|||
- [setApiClient, ['@app.point.api_user']]
|
||||
- [setApiDelay, ['%point_api_delay%']]
|
||||
- [setSubscriptionManager, ['@app.point.subscriptions_manager']]
|
||||
tags: [{ name: console.command }]
|
||||
tags:
|
||||
- { name: console.command }
|
||||
- { name: monolog.logger, channel: subscribers_update }
|
||||
# Webhook management
|
||||
app.telegram.webhook_command:
|
||||
class: Skobkin\Bundle\PointToolsBundle\Command\TelegramWebHookCommand
|
||||
|
|
Loading…
Reference in a new issue