diff options
author | Aaron LI <aaronly.me@outlook.com> | 2016-11-21 10:39:27 +0800 |
---|---|---|
committer | Aaron LI <aaronly.me@outlook.com> | 2016-11-21 10:39:27 +0800 |
commit | 0ed741c4f3db7e4aee3603e051fdd4bc97f1b2de (patch) | |
tree | 59e177ebaac4ad9e8a86edfdbefd2c03e4d2501c /fg21sim/configs | |
parent | e5bb40f8039d7a831568f54fb839fea1870d9099 (diff) | |
download | fg21sim-0ed741c4f3db7e4aee3603e051fdd4bc97f1b2de.tar.bz2 |
Add logging message on backing up old file
Diffstat (limited to 'fg21sim/configs')
-rw-r--r-- | fg21sim/configs/manager.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fg21sim/configs/manager.py b/fg21sim/configs/manager.py index 964bcfc..5cf9b00 100644 --- a/fg21sim/configs/manager.py +++ b/fg21sim/configs/manager.py @@ -581,6 +581,7 @@ class ConfigManager: # Make a backup with suffix ``.old`` backfile = outfile + ".old" shutil.copyfile(outfile, backfile) + logger.info("Backed up old configuration file as: " + backfile) else: raise OSError("outfile already exists: {0}".format(outfile)) # Write out the configurations |