From 59ef7e69124d4b60b41625c9e4e22509f5142dd2 Mon Sep 17 00:00:00 2001 From: Alishahryar1 Date: Thu, 29 Jan 2026 02:01:06 -0800 Subject: [PATCH] debug file handler set to write mode by default --- providers/logging_utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/providers/logging_utils.py b/providers/logging_utils.py index 0b987ccd..f802baf2 100644 --- a/providers/logging_utils.py +++ b/providers/logging_utils.py @@ -27,6 +27,7 @@ def _get_debug_handler() -> RotatingFileHandler: maxBytes=10 * 1024 * 1024, # 10MB backupCount=3, encoding="utf-8", + mode='w' ) _debug_handler.setLevel(logging.DEBUG) return _debug_handler