From fd0bae73d6a41b177775c5f29562c31724c1d9f6 Mon Sep 17 00:00:00 2001 From: Zsailer Date: Thu, 15 Aug 2019 16:31:26 -0700 Subject: [PATCH] add warning if no extension funciton is found --- jupyter_server/serverapp.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/jupyter_server/serverapp.py b/jupyter_server/serverapp.py index a3fefabfd7..850a27bcb3 100755 --- a/jupyter_server/serverapp.py +++ b/jupyter_server/serverapp.py @@ -1415,8 +1415,10 @@ def init_server_extensions(self): func = getattr(mod, 'load_jupyter_server_extension', None) if func is not None: func(self) - # Add debug log for loaded extensions. - self.log.debug("%s is enabled and loaded." % modulename) + # Add debug log for loaded extensions. + self.log.debug("%s is enabled and loaded." % modulename) + else: + self.log.warn("%s is enabled but no `load_jupyter_server_extension` function was found") except Exception: if self.reraise_server_extension_failures: raise