From 918e2ba8d06ca0aff63cc2354539274a6a1f6105 Mon Sep 17 00:00:00 2001 From: zyguan Date: Mon, 24 Jul 2017 11:53:11 +0800 Subject: [PATCH] Revert "fix #752" This reverts commit 599fbcee6e1e427829a9f03de7f7aad2ee67ac22. --- sanic/app.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sanic/app.py b/sanic/app.py index f1e8be7e..f0ccad86 100644 --- a/sanic/app.py +++ b/sanic/app.py @@ -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()