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.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/fg21sim/configs/manager.py b/fg21sim/configs/manager.py
index 9b41b72..4143a8f 100644
--- a/fg21sim/configs/manager.py
+++ b/fg21sim/configs/manager.py
@@ -532,9 +532,8 @@ class ConfigManager:
if stream:
handlers.append(StreamHandler(getattr(sys, stream)))
logfile = conf["filename"]
- filemode = "a" if conf["appendmode"] else "w"
if logfile:
- handlers.append(FileHandler(logfile, mode=filemode))
+ handlers.append(FileHandler(logfile))
# Explicitly add the formatter to each handler
formatter = logging.Formatter(fmt=conf["format"],
@@ -546,7 +545,6 @@ class ConfigManager:
"level": getattr(logging, level),
"format": conf["format"],
"datefmt": conf["datefmt"],
- "filemode": filemode,
"handlers": handlers,
}
return logconf