Добавил логирование в телегу
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# === Раздел с общими конфигурационными параметрами ===
|
||||
|
||||
update_interval: 2
|
||||
work_interval: 2
|
||||
update_interval: 10
|
||||
work_interval: 30
|
||||
|
||||
email_dir: "spareparts"
|
||||
|
||||
@@ -32,26 +32,27 @@ log:
|
||||
maxBytes: 500000
|
||||
backupCount: 10
|
||||
|
||||
#telegram:
|
||||
# level: CRITICAL
|
||||
# formatter: telegram
|
||||
# class: logging_telegram_handler.TelegramHandler
|
||||
# chat_id: 211945135
|
||||
# alias: "PDC"
|
||||
telegram:
|
||||
level: CRITICAL
|
||||
formatter: telegram
|
||||
class: logging_telegram_handler.TelegramHandler
|
||||
chat_id: 211945135
|
||||
alias: "Mail order bot"
|
||||
|
||||
|
||||
# -- Логгеры --
|
||||
loggers:
|
||||
'':
|
||||
handlers: [console, file]
|
||||
handlers: [console, file, telegram]
|
||||
level: INFO
|
||||
propagate: False
|
||||
|
||||
__main__:
|
||||
handlers: [console, file]
|
||||
handlers: [console, file, telegram]
|
||||
level: INFO
|
||||
propagate: False
|
||||
|
||||
config_manager:
|
||||
handlers: [console, file]
|
||||
level: DEBUG
|
||||
|
||||
Reference in New Issue
Block a user