Skip to content

Commit e54fb61

Browse files
Update Python_Engine/Python/src/python_toolkit/bhom/analytics.py
Co-authored-by: Thomas Edward Kingstone <[email protected]>
1 parent 701555a commit e54fb61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def wrapper(*args, **kwargs) -> Any:
8585
finally:
8686
log_file = BHOM_LOG_FOLDER / f"{function.__module__.split('.')[0]}_{datetime.now().strftime('%Y%m%d')}.log"
8787

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

0 commit comments

Comments
 (0)