From a87c21c2d44378ede1bd406dce3443648d22c1df Mon Sep 17 00:00:00 2001 From: MinRK Date: Thu, 11 Sep 2014 22:11:06 -0700 Subject: [PATCH] avoid logging errors when running with IPython < 3 --- jupyterhub/app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jupyterhub/app.py b/jupyterhub/app.py index 29ee893b..57b6e86f 100644 --- a/jupyterhub/app.py +++ b/jupyterhub/app.py @@ -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: