From fddd29f63a2f58e369999f6263a569978044e32c Mon Sep 17 00:00:00 2001 From: Jonathan Frederic Date: Tue, 21 Jul 2015 16:33:30 -0700 Subject: [PATCH] Use app_log --- notebook/notebookapp.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/notebook/notebookapp.py b/notebook/notebookapp.py index 05d6733d6..491dfff75 100644 --- a/notebook/notebookapp.py +++ b/notebook/notebookapp.py @@ -142,7 +142,7 @@ class NotebookWebApplication(web.Application): ipython_app, kernel_manager, contents_manager, cluster_manager, session_manager, kernel_spec_manager, config_manager, log, base_url, default_url, settings_overrides, jinja_env_options) - handlers = self.init_handlers(settings, ipython_app) + handlers = self.init_handlers(settings) super(NotebookWebApplication, self).__init__(handlers, **settings) @@ -216,7 +216,7 @@ class NotebookWebApplication(web.Application): settings.update(settings_overrides) return settings - def init_handlers(self, settings, ipython_app): + def init_handlers(self, settings): """Load the (URL pattern, handler) tuples for each component.""" # Order matters. The first handler to match the URL will handle the request. @@ -249,7 +249,7 @@ class NotebookWebApplication(web.Application): }), ) except: - ipython_app.log.warn('ipywidgets package not installed. Widgets are unavailable.') + app_log.warn('ipywidgets package not installed. Widgets are unavailable.') # END HARDCODED WIDGETS HACK handlers.append(