diff --git a/BotCode/__init__.py b/BotCode/__init__.py index 767674c..37e429e 100644 --- a/BotCode/__init__.py +++ b/BotCode/__init__.py @@ -3,5 +3,5 @@ from .keyboards import * from .routers import * -from .time import * +from .timer import * from .inline import * diff --git a/BotCode/time/__init__.py b/BotCode/time/__init__.py deleted file mode 100644 index d25556f..0000000 --- a/BotCode/time/__init__.py +++ /dev/null @@ -1,2 +0,0 @@ -# BotCode/time/__init__.py -# Инициализация пакета time, для временных операций (в разработке) diff --git a/BotCode/timer/__init__.py b/BotCode/timer/__init__.py new file mode 100644 index 0000000..d52c60d --- /dev/null +++ b/BotCode/timer/__init__.py @@ -0,0 +1,2 @@ +# BotCode/timer/__init__.py +# Инициализация пакета timer, для временных операций (в разработке) diff --git a/BotLibrary/analitics/start_info_out.py b/BotLibrary/analitics/start_info_out.py index d2e782e..1b8facf 100644 --- a/BotLibrary/analitics/start_info_out.py +++ b/BotLibrary/analitics/start_info_out.py @@ -3,7 +3,7 @@ # Логирование стартов бота в bot_start.log from datetime import datetime -from time import sleep +from timer import sleep from loguru import logger from config import ImportantPath, BotVariables diff --git a/BotLibrary/config.py b/BotLibrary/config.py index 163ac36..5fc510b 100644 --- a/BotLibrary/config.py +++ b/BotLibrary/config.py @@ -27,12 +27,12 @@ class LogsSet: max_size = "500 MB" # Шаблон логов для обычного логгера - info_text = ("{time:YYYY-MM-DD HH:mm:ss} | " + info_text = ("{timer:YYYY-MM-DD HH:mm:ss} | " "PRIMO-{extra[log_type]} | " "{extra[user]} | {message}") # Шаблон логов для логгера-ошибок - error_text = ("{time:YYYY-MM-DD HH:mm:ss} | ERROR-{extra[log_type]} | " + error_text = ("{timer:YYYY-MM-DD HH:mm:ss} | ERROR-{extra[log_type]} | " "{extra[user]} | {message}")