From 599fbcee6e1e427829a9f03de7f7aad2ee67ac22 Mon Sep 17 00:00:00 2001 From: Raphael Deem Date: Sun, 11 Jun 2017 23:20:04 -0700 Subject: [PATCH] fix #752 --- sanic/app.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sanic/app.py b/sanic/app.py index f6b1e84e..01af3526 100644 --- a/sanic/app.py +++ b/sanic/app.py @@ -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()