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

View file

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