core: log a traceback if a plugin can't be loaded
This commit is contained in:
parent
f11243bcee
commit
1a7c36a19c
1 changed files with 2 additions and 4 deletions
|
|
@ -432,10 +432,8 @@ class SAT(service.Service):
|
|||
try:
|
||||
self.plugins[import_name] = getattr(mod, plugin_info["main"])(self)
|
||||
except Exception as e:
|
||||
log.warning(
|
||||
'Error while loading plugin "{name}", ignoring it: {error}'.format(
|
||||
name=plugin_info["name"], error=e
|
||||
)
|
||||
log.exception(
|
||||
f"Can't load plugin \"{plugin_info['name']}\", ignoring it: {e}"
|
||||
)
|
||||
if optional:
|
||||
return
|
||||
|
|
|
|||
Loading…
Reference in a new issue