FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit 8603e3e3 authored by L. Bower's avatar L. Bower
Browse files

moving log file output to before the assert statement, so we can more easily...

moving log file output to before the assert statement, so we can more easily see which file is missing [if a file is missing]
parent ead88151
No related branches found
No related tags found
No related merge requests found
......@@ -186,6 +186,8 @@ def move_default_logfile_handler(dstPathName,srcPathName=log_path_default,FileHa
contents of the source log file to destination, switches file handler in
logger, then removes source log file.'''
logger.info(f"Moving logfile location from:\n{srcPathName}\nto:\n{dstPathName}")
# copy old log file to new filename
srcPath = Path(srcPathName)
dstPath = Path(dstPathName)
......@@ -200,7 +202,6 @@ def move_default_logfile_handler(dstPathName,srcPathName=log_path_default,FileHa
newfilehandler.setLevel(oldFileHandler.level)
newfilehandler.setFormatter(oldFormatter)
logger.info(f"Moving logfile location from:\n{srcPathName}\nto:\n{dstPathName}")
shutil.copyfile(srcPath,dstPath)
# add handler for destination 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