mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-15 05:53:00 +00:00
avoid logging errors when running with IPython < 3
This commit is contained in:
@@ -166,7 +166,6 @@ class JupyterHubApp(Application):
|
||||
|
||||
handlers = List()
|
||||
|
||||
|
||||
_log_formatter_cls = LogFormatter
|
||||
|
||||
def _log_level_default(self):
|
||||
@@ -191,6 +190,8 @@ class JupyterHubApp(Application):
|
||||
logger.propagate = True
|
||||
logger.parent = self.log
|
||||
logger.setLevel(self.log.level)
|
||||
# IPython < 3 compat
|
||||
self._log_format_changed('', '', self.log_format)
|
||||
|
||||
def init_ports(self):
|
||||
if self.hub_port == self.port:
|
||||
|
Reference in New Issue
Block a user