mirror of
https://github.com/KnugiHK/WhatsApp-Chat-Exporter.git
synced 2026-04-24 23:11:35 +00:00
Update debug log name
This commit is contained in:
@@ -719,7 +719,8 @@ def setup_logging(level):
|
|||||||
log_handler_stdout.terminator = ""
|
log_handler_stdout.terminator = ""
|
||||||
handlers = [log_handler_stdout]
|
handlers = [log_handler_stdout]
|
||||||
if level == logging.DEBUG:
|
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(
|
logging.basicConfig(
|
||||||
level=level,
|
level=level,
|
||||||
format="[%(levelname)s] %(message)s",
|
format="[%(levelname)s] %(message)s",
|
||||||
|
|||||||
Reference in New Issue
Block a user