aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/configs
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@outlook.com>2016-11-21 10:39:27 +0800
committerAaron LI <aaronly.me@outlook.com>2016-11-21 10:39:27 +0800
commit0ed741c4f3db7e4aee3603e051fdd4bc97f1b2de (patch)
tree59e177ebaac4ad9e8a86edfdbefd2c03e4d2501c /fg21sim/configs
parente5bb40f8039d7a831568f54fb839fea1870d9099 (diff)
downloadfg21sim-0ed741c4f3db7e4aee3603e051fdd4bc97f1b2de.tar.bz2
Add logging message on backing up old file
Diffstat (limited to 'fg21sim/configs')
-rw-r--r--fg21sim/configs/manager.py1
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