Skip to content

Commit

Permalink
add warning if no extension funciton is found
Browse files Browse the repository at this point in the history
  • Loading branch information
Zsailer committed Aug 16, 2019
1 parent d7b70e7 commit 89c184c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions jupyter_server/serverapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 89c184c

Please sign in to comment.