Merge pull request #1 from w495/w495-patch-1

LOG_DICT_CONFIG for custom logging
This commit is contained in:
w-495 2017-01-05 06:56:13 +03:00 committed by GitHub
commit f61e707d31
1 changed files with 2 additions and 1 deletions

View File

@ -87,7 +87,8 @@ def configure_logging(settings=None, install_root_handler=True):
observer = twisted_log.PythonLoggingObserver('twisted')
observer.start()
dictConfig(DEFAULT_LOGGING)
dictConfig(settings.get('LOG_DICT_CONFIG', DEFAULT_LOGGING))
if isinstance(settings, dict) or settings is None:
settings = Settings(settings)