diff options
author | Aaron LI <aaronly.me@outlook.com> | 2016-11-07 15:11:32 +0800 |
---|---|---|
committer | Aaron LI <aaronly.me@outlook.com> | 2016-11-07 15:11:32 +0800 |
commit | 56ed0976218c90caf6b01c532c1570d44499a7aa (patch) | |
tree | 76d37acaacdfbaecb6e59dfc89d5398dca4f0133 /fg21sim/configs/manager.py | |
parent | 9626c7518479d7f4a70da751dcc257e098381fd8 (diff) | |
download | fg21sim-56ed0976218c90caf6b01c532c1570d44499a7aa.tar.bz2 |
configs: Change "logging/filemode" to boolean "logging/appendmode"
* Update the "logging" property in "manager.py"
* Also add "extragalactic/clusters" to "common/components"
Diffstat (limited to 'fg21sim/configs/manager.py')
-rw-r--r-- | fg21sim/configs/manager.py | 2 |
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)) # |