logging tweak
This commit is contained in:
parent
f0da043cb8
commit
d48017c6e8
@ -24,7 +24,7 @@ class ExtensionManager(object):
|
|||||||
self.namespace = namespace
|
self.namespace = namespace
|
||||||
self.extensions = []
|
self.extensions = []
|
||||||
for ep in pkg_resources.iter_entry_points(self.namespace):
|
for ep in pkg_resources.iter_entry_points(self.namespace):
|
||||||
LOG.debug('found extension %r', ep.name)
|
LOG.debug('found extension %r', ep)
|
||||||
try:
|
try:
|
||||||
ext = self._load_one_plugin(ep,
|
ext = self._load_one_plugin(ep,
|
||||||
invoke_on_load,
|
invoke_on_load,
|
||||||
@ -77,6 +77,7 @@ class ExtensionManager(object):
|
|||||||
response.append(func(e, *args, **kwds))
|
response.append(func(e, *args, **kwds))
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
LOG.error('error calling %r: %s', e.name, err)
|
LOG.error('error calling %r: %s', e.name, err)
|
||||||
|
LOG.exception(err)
|
||||||
return response
|
return response
|
||||||
|
|
||||||
def __iter__(self):
|
def __iter__(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user