Skip to content

Commit 701555a

Browse files
Moved a string conversion slightly
1 parent 9d8a60d commit 701555a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Python_Engine/Python/src/python_toolkit/bhom/analytics.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,11 @@ def wrapper(*args, **kwargs) -> Any:
8383
exec_metadata["Errors"].extend(sys.exc_info())
8484
raise exc
8585
finally:
86-
log_file = str(BHOM_LOG_FOLDER / f"{function.__module__.split('.')[0]}_{datetime.now().strftime('%Y%m%d')}.log")
86+
log_file = BHOM_LOG_FOLDER / f"{function.__module__.split('.')[0]}_{datetime.now().strftime('%Y%m%d')}.log"
8787

8888
if ANALYTICS_LOGGER.handlers[0].baseFilename != log_file:
8989
ANALYTICS_LOGGER.handlers[0].close()
90-
ANALYTICS_LOGGER.handlers[0].baseFilename = log_file
90+
ANALYTICS_LOGGER.handlers[0].baseFilename = str(log_file)
9191

9292
ANALYTICS_LOGGER.info(
9393
json.dumps(exec_metadata, default=str, indent=None)

0 commit comments

Comments
 (0)