Improve error message to include information from the exception

This commit is contained in:
AdamPS 2023-01-23 15:51:52 +00:00
parent d20894a7c4
commit 788e2b43af
1 changed files with 2 additions and 2 deletions

View File

@ -84,8 +84,8 @@ class PluginManager:
for plugin in config.get('plugins'): for plugin in config.get('plugins'):
try: try:
self.__load_plugin(plugin) self.__load_plugin(plugin)
except BaseException: except BaseException as e:
logging.error('Error in loading the plugin: %s', plugin['id']) logging.error('Error in loading the plugin %s: %s', plugin['id'], e)
continue continue
# Initialize the plugins # Initialize the plugins
for plugin in self.__plugins_on_init: for plugin in self.__plugins_on_init: