diff --git a/safeeyes/plugin_manager.py b/safeeyes/plugin_manager.py index 9e8a53f..6dfaa7a 100644 --- a/safeeyes/plugin_manager.py +++ b/safeeyes/plugin_manager.py @@ -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