Merge pull request #790 from r0fls/752

fix #752
This commit is contained in:
Raphael Deem 2017-06-11 23:24:32 -07:00 committed by GitHub
commit 041c48de19

View File

@ -33,7 +33,9 @@ class Sanic:
logging.config.dictConfig(log_config)
# Only set up a default log handler if the
# end-user application didn't set anything up.
if not logging.root.handlers and log.level == logging.NOTSET:
if not (logging.root.handlers and
log.level == logging.NOTSET and
log_config):
formatter = logging.Formatter(
"%(asctime)s: %(levelname)s: %(message)s")
handler = logging.StreamHandler()