Warn about plugin load failures rather than merely debug-logging them

This commit is contained in:
Linus Heckemann 2016-08-07 11:59:16 +01:00
parent 967432c096
commit 7f8e44f087
1 changed files with 5 additions and 1 deletions

View File

@ -482,7 +482,11 @@ class PluginManager(metaclass=Singleton):
try:
module = __import__(module_name)
except Exception as error:
log.debug(str(error))
log.warning(
"While trying to load {plugin}, exception occurred: {error}"
.format(plugin=elem_name, error=str(error))
)
continue
if module is None:
continue