From 8262fb9d4eb78f1a111696a05f212a1c6632f188 Mon Sep 17 00:00:00 2001 From: Swann Date: Fri, 5 Feb 2021 11:50:58 +0100 Subject: [PATCH] feat: time stamped logs files --- multi_user/operators.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/multi_user/operators.py b/multi_user/operators.py index a6db607..c3ff65b 100644 --- a/multi_user/operators.py +++ b/multi_user/operators.py @@ -165,9 +165,10 @@ class SessionStartOperator(bpy.types.Operator): datefmt='%H:%M:%S' ) + start_time = datetime.now().strftime('%Y_%m_%d_%H-%M-%S') log_directory = os.path.join( settings.cache_directory, - "multiuser_client.log") + f"multiuser_{start_time}.log") os.makedirs(settings.cache_directory, exist_ok=True)