Merge pull request #862 from zyguan/revert-599fbce

revert 599fbce
This commit is contained in:
Eli Uriegas
2017-07-31 13:51:04 -07:00
committed by GitHub
2 changed files with 23 additions and 4 deletions

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()