Skip to content

Commit

Permalink
Merge pull request jupyter-server#506 from candlerb/candlerb/extensio…
Browse files Browse the repository at this point in the history
…n-backtrace

Include backtrace in debug output when extension fails to load
  • Loading branch information
blink1073 authored May 5, 2021
2 parents 646b702 + 1a2a34f commit 76a8185
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jupyter_server/extension/manager.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import importlib
import sys
import traceback

from traitlets.config import LoggingConfigurable

Expand Down Expand Up @@ -339,6 +341,7 @@ def load_extension(self, name, serverapp):
extension.load_all_points(serverapp)
self.log.info("{name} | extension was successfully loaded.".format(name=name))
except Exception as e:
self.log.debug("".join(traceback.format_exception(*sys.exc_info())))
self.log.warning("{name} | extension failed loading with message: {error}".format(name=name,error=str(e)))

def link_all_extensions(self, serverapp):
Expand Down

0 comments on commit 76a8185

Please sign in to comment.