diff options
Diffstat (limited to 'fg21sim/utils')
-rw-r--r-- | fg21sim/utils/logging.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fg21sim/utils/logging.py b/fg21sim/utils/logging.py index 2b2317f..0abf4d3 100644 --- a/fg21sim/utils/logging.py +++ b/fg21sim/utils/logging.py @@ -39,8 +39,11 @@ def setup_logging(dict_config=None, level=None, stream=None, logfile=None): filemode = "a" # if dict_config: + # XXX: + # "basicConfig()" does NOT accept paramter "filemode" if the + # corresponding parameter "filename" NOT specified. + filemode = dict_config.pop("filemode", filemode) logging.basicConfig(**dict_config) - filemode = dict_config["filemode"] # root_logger = logging.getLogger() # |