From 9a5440c2c4b966222cfed0c52ca018be1e5b386c Mon Sep 17 00:00:00 2001 From: William Wills Date: Thu, 5 Dec 2024 11:18:13 -0500 Subject: [PATCH] fix: linter errors --- app/logger.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/logger.py b/app/logger.py index 4864c9a..b605085 100644 --- a/app/logger.py +++ b/app/logger.py @@ -18,11 +18,11 @@ def get_file_log_handler(formatter: logging.Formatter) -> ConcurrentRotatingFileHandler: log_path = settings.LOG_PATH log_path.parent.mkdir(parents=True, exist_ok=True) - handler = ConcurrentRotatingFileHandler(log_path, "a", maxBytes=50 * 1024 * 1024, backupCount=7, use_gzip=False) + handler = ConcurrentRotatingFileHandler(str(log_path.resolve()), "a", maxBytes=50 * 1024 * 1024, backupCount=7, use_gzip=False) handler.setFormatter(formatter) return handler - +# type: ignore def initialize_logging() -> Dict[str, Any]: log_date_format = "%Y-%m-%dT%H:%M:%S" file_log_formatter = logging.Formatter(