flattened a call to fileConfig
Dieser Commit ist enthalten in:
Ursprung
1a63825ba6
Commit
b3873f0239
|
@ -77,7 +77,11 @@ class Logger(gLogger):
|
|||
defaults = CONFIG_DEFAULTS.copy()
|
||||
defaults["__file__"] = cfg.logconfig
|
||||
defaults["here"] = os.path.dirname(cfg.logconfig)
|
||||
fileConfig(cfg.logconfig, defaults=defaults, disable_existing_loggers=False)
|
||||
fileConfig(
|
||||
cfg.logconfig,
|
||||
defaults=defaults,
|
||||
disable_existing_loggers=False,
|
||||
)
|
||||
else:
|
||||
msg = "Error: log config '%s' not found"
|
||||
raise RuntimeError(msg % cfg.logconfig)
|
||||
|
|
Laden…
In neuem Issue referenzieren