Include traceback in exception logging for plugin load

This commit is contained in:
Linus Heckemann 2016-08-20 00:35:57 +02:00
parent 6b3879a7b7
commit a826019739
1 changed files with 2 additions and 2 deletions

View File

@ -484,8 +484,8 @@ class PluginManager(metaclass=Singleton):
module = __import__(module_name)
except Exception as error:
log.warning(
"While trying to load {plugin}, exception occurred: {error}"
.format(plugin=elem_name, error=str(error))
"While trying to load {plugin}, exception occurred".format(plugin=elem_name),
exc_info=sys.exc_info()
)
continue