From ecb240db3430ab7b2ed5515a2e6fdcf80f64223c Mon Sep 17 00:00:00 2001 From: norohind <60548839+norohind@users.noreply.github.com> Date: Wed, 16 Mar 2022 17:10:39 +0300 Subject: [PATCH] Add file log offlineTTSBot.log, rotation 5MB --- main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.py b/main.py index 3faa0c3..0a9adf4 100644 --- a/main.py +++ b/main.py @@ -9,6 +9,8 @@ from DynamicCommandPrefix import dynamic_command_prefix import Observ +logger.add('offlineTTSBot.log', backtrace=True, diagnose=False, rotation='5MB') + """ while msg := input('$ '): start = time.time()