Log the plugin errors too

This commit is contained in:
mathieui 2015-01-05 16:57:28 +01:00
parent bd1c41472a
commit 741ea61454
No known key found for this signature in database
GPG key ID: C59F84CEEFD616E3

View file

@ -80,6 +80,7 @@ class SafetyMetaclass(type):
if inspect.stack()[1][1] == inspect.getfile(f): if inspect.stack()[1][1] == inspect.getfile(f):
raise raise
elif SafetyMetaclass.core: elif SafetyMetaclass.core:
log.error('Error in a plugin', exc_info=True)
SafetyMetaclass.core.information(traceback.format_exc()) SafetyMetaclass.core.information(traceback.format_exc())
return None return None
return helper return helper