From 75c3999567d2e67e2413782cfb67495e85659469 Mon Sep 17 00:00:00 2001 From: KnugiHK <24708955+KnugiHK@users.noreply.github.com> Date: Sun, 11 May 2025 16:56:19 +0800 Subject: [PATCH] Update debug log name --- Whatsapp_Chat_Exporter/__main__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Whatsapp_Chat_Exporter/__main__.py b/Whatsapp_Chat_Exporter/__main__.py index 9279812..e883637 100644 --- a/Whatsapp_Chat_Exporter/__main__.py +++ b/Whatsapp_Chat_Exporter/__main__.py @@ -719,7 +719,8 @@ def setup_logging(level): log_handler_stdout.terminator = "" handlers = [log_handler_stdout] if level == logging.DEBUG: - handlers.append(logging.FileHandler("debug.log", mode="w")) + timestamp = datetime.now().strftime("%Y%m%d-%H%M%S") + handlers.append(logging.FileHandler(f"wtsexpoter-debug-{timestamp}.log", mode="w")) logging.basicConfig( level=level, format="[%(levelname)s] %(message)s",