Skip to content

Commit

Permalink
add logging messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Zsailer committed Aug 15, 2019
1 parent e416c74 commit d7b70e7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 11 additions & 1 deletion jupyter_server/extension/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,17 @@ def launch_instance(cls, argv=None, **kwargs):
else:
args = []
# Get a jupyter server instance.
serverapp = cls.initialize_server(argv=args, load_other_extensions=cls.load_other_extensions)
serverapp = cls.initialize_server(
argv=args,
load_other_extensions=cls.load_other_extensions
)
# Log if extension is blocking other extensions from loading.
if cls.load_other_extensions:
serverapp.log.info(
"{ext_name} is running without loading "
"other extensions.".format(ext_name=cls.extension_name)
)

extension = cls._prepare_launch(serverapp, argv=args, **kwargs)
# Start the ioloop.
extension.start_server()
Expand Down
2 changes: 2 additions & 0 deletions jupyter_server/serverapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -1415,6 +1415,8 @@ 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)
except Exception:
if self.reraise_server_extension_failures:
raise
Expand Down

0 comments on commit d7b70e7

Please sign in to comment.