We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5fa59e1 + 79b894d commit 16f478eCopy full SHA for 16f478e
reframe/core/logging.py
@@ -428,6 +428,10 @@ def _create_file_handler(site_config, config_prefix):
428
timestamp = site_config.get(f'{config_prefix}/timestamp')
429
if timestamp:
430
basename, ext = os.path.splitext(filename)
431
+ if not isinstance(timestamp, str):
432
+ # Use the default value from `datefmt`
433
+ timestamp = site_config.get(f'{config_prefix}/datefmt')
434
+
435
filename = f'{basename}_{time.strftime(timestamp)}{ext}'
436
437
append = site_config.get(f'{config_prefix}/append')
0 commit comments