Просмотр исходного кода

Don't disable existing loggers

The logger is retrieved before configure_from_file is called and gets disabled, the same happens when the logging configuration is reloaded.
Unrud 9 лет назад
Родитель
Сommit
e40e46e164
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      radicale/log.py

+ 1 - 1
radicale/log.py

@@ -30,7 +30,7 @@ import sys
 
 
 def configure_from_file(logger, filename, debug):
-    logging.config.fileConfig(filename)
+    logging.config.fileConfig(filename, disable_existing_loggers=False)
     if debug:
         logger.setLevel(logging.DEBUG)
         for handler in logger.handlers: