##// END OF EJS Templates
properly hook up tornado loggers
MinRK -
Show More
@@ -541,7 +541,10 b' class NotebookApp(BaseIPythonApplication):'
541
541
542 # hook up tornado 3's loggers to our app handlers
542 # hook up tornado 3's loggers to our app handlers
543 for name in ('access', 'application', 'general'):
543 for name in ('access', 'application', 'general'):
544 logging.getLogger('tornado.%s' % name).handlers = self.log.handlers
544 logger = logging.getLogger('tornado.%s' % name)
545 logger.propagate = False
546 logger.setLevel(self.log.level)
547 logger.handlers = self.log.handlers
545
548
546 def init_webapp(self):
549 def init_webapp(self):
547 """initialize tornado webapp and httpserver"""
550 """initialize tornado webapp and httpserver"""
General Comments 0
You need to be logged in to leave comments. Login now