mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-13 04:53:01 +00:00
fixup init_logging
This commit is contained in:
@@ -198,6 +198,7 @@ class JupyterHubApp(Application):
|
|||||||
base_url = self.base_url
|
base_url = self.base_url
|
||||||
settings = dict(
|
settings = dict(
|
||||||
config=self.config,
|
config=self.config,
|
||||||
|
log=self.log,
|
||||||
db=self.db,
|
db=self.db,
|
||||||
hub=self.hub,
|
hub=self.hub,
|
||||||
spawner_class=import_item(self.spawner_class),
|
spawner_class=import_item(self.spawner_class),
|
||||||
@@ -216,6 +217,7 @@ class JupyterHubApp(Application):
|
|||||||
|
|
||||||
def initialize(self, *args, **kwargs):
|
def initialize(self, *args, **kwargs):
|
||||||
super(JupyterHubApp, self).initialize(*args, **kwargs)
|
super(JupyterHubApp, self).initialize(*args, **kwargs)
|
||||||
|
self.init_logging()
|
||||||
self.init_db()
|
self.init_db()
|
||||||
self.init_hub()
|
self.init_hub()
|
||||||
self.init_proxy()
|
self.init_proxy()
|
||||||
|
@@ -25,7 +25,7 @@ class BaseHandler(RequestHandler):
|
|||||||
@property
|
@property
|
||||||
def log(self):
|
def log(self):
|
||||||
"""I can't seem to avoid typing self.log"""
|
"""I can't seem to avoid typing self.log"""
|
||||||
return app_log
|
return self.settings.get('log', app_log)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def config(self):
|
def config(self):
|
||||||
|
Reference in New Issue
Block a user