feat: time stamped logs files

This commit is contained in:
Swann 2021-02-05 11:50:58 +01:00
parent c2114b593e
commit 8262fb9d4e
No known key found for this signature in database
GPG Key ID: E1D3641A7C43AACB

View File

@ -165,9 +165,10 @@ class SessionStartOperator(bpy.types.Operator):
datefmt='%H:%M:%S' datefmt='%H:%M:%S'
) )
start_time = datetime.now().strftime('%Y_%m_%d_%H-%M-%S')
log_directory = os.path.join( log_directory = os.path.join(
settings.cache_directory, settings.cache_directory,
"multiuser_client.log") f"multiuser_{start_time}.log")
os.makedirs(settings.cache_directory, exist_ok=True) os.makedirs(settings.cache_directory, exist_ok=True)