FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit a8a6740b authored by Dr T. Mona's avatar Dr T. Mona
Browse files

fix: closing old log file.

This is necessary for Win to be able to rename the file afterward.
parent 0c7be7f4
No related branches found
No related tags found
No related merge requests found
......@@ -211,6 +211,7 @@ def move_default_logfile_handler(dstPathName,srcPathName=log_path_default,FileHa
# remove handler for source file
logger.info('Stopping write to old file handler')
logger.removeHandler(oldFileHandler)
oldFileHandler.close()
logger.info('Successfully stopped write to old file handler')
# delete old log file
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment