From 0b080a6754d8eba2e1e220ef83e7bd70d0f74056 2013-10-17 21:09:15 From: MinRK Date: 2013-10-17 21:09:15 Subject: [PATCH] properly hook up tornado loggers --- diff --git a/IPython/html/notebookapp.py b/IPython/html/notebookapp.py index 51b52ed..5835e44 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"""