ORM update and lots of improvements

This commit is contained in:
Vladless
2025-05-24 19:30:23 +03:00
parent d2d6ba1be9
commit d4d2ff1867
106 changed files with 7634 additions and 5279 deletions
+2 -2
View File
@@ -1,11 +1,11 @@
import logging
import os
import sys
from datetime import timedelta
from loguru import logger
from config import LOG_ROTATION_TIME
log_folder = "logs"
@@ -47,7 +47,7 @@ logger.add(
log_file_path,
level="DEBUG",
format="{time:YYYY-MM-DD HH:mm:ss} | {level} | {module}:{function}:{line} | {message}",
rotation=timedelta(minutes=60),
rotation=LOG_ROTATION_TIME,
retention=timedelta(days=3),
)