From e18407f33e454deee2a76b19ff6a33b34d9a5dfb Mon Sep 17 00:00:00 2001 From: zosimovaa Date: Fri, 7 Nov 2025 21:05:21 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D0=BB=D0=BE=D0=B3=D0=B8=D1=80=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5=20=D0=B2=20=D1=82=D0=B5=D0=BB=D0=B5=D0=B3=D1=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mail_order_bot/config.yml | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/src/mail_order_bot/config.yml b/src/mail_order_bot/config.yml index f7bf06b..8ce0a0e 100644 --- a/src/mail_order_bot/config.yml +++ b/src/mail_order_bot/config.yml @@ -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 \ No newline at end of file + level: DEBUG + \ No newline at end of file