From ac5434efba48cfd55b5d03fc44bd3c31ec1db48b Mon Sep 17 00:00:00 2001 From: MinRK Date: Tue, 8 Oct 2013 12:06:07 -0700 Subject: [PATCH] properly hook up tornado loggers --- IPython/html/notebookapp.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/IPython/html/notebookapp.py b/IPython/html/notebookapp.py index 51b52ede2..5835e4471 100644 --- a/IPython/html/notebookapp.py +++ b/IPython/html/notebookapp.py @@ -541,7 +541,10 @@ class NotebookApp(BaseIPythonApplication): # hook up tornado 3's loggers to our app handlers for name in ('access', 'application', 'general'): - logging.getLogger('tornado.%s' % name).handlers = self.log.handlers + logger = logging.getLogger('tornado.%s' % name) + logger.propagate = False + logger.setLevel(self.log.level) + logger.handlers = self.log.handlers def init_webapp(self): """initialize tornado webapp and httpserver"""