aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/configs/manager.py
diff options
context:
space:
mode:
Diffstat (limited to 'fg21sim/configs/manager.py')
-rw-r--r--fg21sim/configs/manager.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fg21sim/configs/manager.py b/fg21sim/configs/manager.py
index c03222d..28ff24d 100644
--- a/fg21sim/configs/manager.py
+++ b/fg21sim/configs/manager.py
@@ -486,7 +486,7 @@ class ConfigManager:
if stream:
handlers.append(StreamHandler(getattr(sys, stream)))
logfile = conf["filename"]
- filemode = conf["filemode"]
+ filemode = "a" if conf["appendmode"] else "w"
if logfile:
handlers.append(FileHandler(logfile, mode=filemode))
#