Display a traceback of plugin loading errors when --debug is given (#506)
This commit is contained in:
parent
06d8f491c4
commit
45a633d31f
|
@ -85,6 +85,10 @@ class PluginManager:
|
|||
try:
|
||||
self.__load_plugin(plugin)
|
||||
except BaseException as e:
|
||||
traceback_wanted = logging.getLogger().getEffectiveLevel() == logging.DEBUG
|
||||
if traceback_wanted:
|
||||
import traceback
|
||||
traceback.print_exc()
|
||||
logging.error('Error in loading the plugin %s: %s', plugin['id'], e)
|
||||
continue
|
||||
# Initialize the plugins
|
||||
|
|
Loading…
Reference in New Issue