Revert "fix #752"
This reverts commit 599fbcee6e1e427829a9f03de7f7aad2ee67ac22.
This commit is contained in:
parent
e8a9b4743b
commit
918e2ba8d0
@ -33,9 +33,7 @@ class Sanic:
|
|||||||
logging.config.dictConfig(log_config)
|
logging.config.dictConfig(log_config)
|
||||||
# Only set up a default log handler if the
|
# Only set up a default log handler if the
|
||||||
# end-user application didn't set anything up.
|
# end-user application didn't set anything up.
|
||||||
if not (logging.root.handlers and
|
if not logging.root.handlers and log.level == logging.NOTSET:
|
||||||
log.level == logging.NOTSET and
|
|
||||||
log_config):
|
|
||||||
formatter = logging.Formatter(
|
formatter = logging.Formatter(
|
||||||
"%(asctime)s: %(levelname)s: %(message)s")
|
"%(asctime)s: %(levelname)s: %(message)s")
|
||||||
handler = logging.StreamHandler()
|
handler = logging.StreamHandler()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user