Revert "fix #752"

This reverts commit 599fbcee6e.
This commit is contained in:
zyguan 2017-07-24 11:53:11 +08:00
parent e8a9b4743b
commit 918e2ba8d0

View File

@ -33,9 +33,7 @@ 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 and
log_config):
if not logging.root.handlers and log.level == logging.NOTSET:
formatter = logging.Formatter(
"%(asctime)s: %(levelname)s: %(message)s")
handler = logging.StreamHandler()