Skip to content

Commit 9c9beb2

Browse files
committed
Turn ExtensionPoint class into a LoggingConfigurable to enable logging
1 parent e12feb9 commit 9c9beb2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

jupyter_server/extension/manager.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
from itertools import starmap
77

88
from tornado.gen import multi
9-
from traitlets import Any, Bool, Dict, HasTraits, Instance, List, Unicode, default, observe
9+
from traitlets import Any, Bool, Dict, Instance, List, Unicode, default, observe
1010
from traitlets import validate as validate_trait
1111
from traitlets.config import LoggingConfigurable
1212

1313
from .config import ExtensionConfigManager
1414
from .utils import ExtensionMetadataError, ExtensionModuleNotFound, get_loader, get_metadata
1515

1616

17-
class ExtensionPoint(HasTraits):
17+
class ExtensionPoint(LoggingConfigurable):
1818
"""A simple API for connecting to a Jupyter Server extension
1919
point defined by metadata and importable from a Python package.
2020
"""
@@ -227,7 +227,7 @@ def _load_metadata(self):
227227
raise ExtensionModuleNotFound(msg) from None
228228
# Create extension point interfaces for each extension path.
229229
for m in self.metadata:
230-
point = ExtensionPoint(metadata=m)
230+
point = ExtensionPoint(metadata=m, parent=self)
231231
self.extension_points[point.name] = point
232232
return name
233233

0 commit comments

Comments
 (0)