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