From 89c184cdd02cc5a0265be790feeea7599a168a44 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..ce723443c8 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.warning("%s is enabled but no `load_jupyter_server_extension` function was found") except Exception: if self.reraise_server_extension_failures: raise