diff --git a/coordinator/Processor.py b/coordinator/Processor.py index 0bcc1c8e2baa87fab2a9c5818ceaa0019bb83a79..100b7a851c9142400ae532f29664e4e750fc3368 100755 --- a/coordinator/Processor.py +++ b/coordinator/Processor.py @@ -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