mirror of
https://github.com/bellingcat/auto-archiver-api.git
synced 2026-06-11 21:18:35 +03:00
optimizing compose and logging
This commit is contained in:
@@ -3,8 +3,8 @@ from loguru import logger
|
||||
|
||||
|
||||
# logging configurations
|
||||
logger.add("app/logs/api_logs.log", retention="30 days", rotation="3 days")
|
||||
logger.add("app/logs/error_logs.log", retention="30 days", level="ERROR")
|
||||
logger.add("logs/api_logs.log", retention="30 days")
|
||||
logger.add("logs/error_logs.log", retention="30 days", level="ERROR")
|
||||
|
||||
|
||||
def log_error(e: Exception, traceback_str: str = None, extra:str = ""):
|
||||
|
||||
Reference in New Issue
Block a user