--- a/src/eric7/PluginManager/PluginManager.py Sat Jun 08 19:11:03 2024 +0200 +++ b/src/eric7/PluginManager/PluginManager.py Sun Jun 09 16:49:06 2024 +0200 @@ -12,6 +12,7 @@ import importlib import importlib.util import itertools +import logging import os import pathlib import sys @@ -626,6 +627,7 @@ plug-in activation """ try: + logging.getLogger(__name__).debug(f"Activating Plugin '{name}'...") try: module = ( self.__onDemandInactiveModules[name] @@ -633,6 +635,7 @@ else self.__inactiveModules[name] ) except KeyError: + logging.getLogger(__name__).debug(f"No such plugin module: '{name}'") return None, f"no such plugin module: {name}" if not self.__canActivatePlugin(module): @@ -659,6 +662,9 @@ obj = None ok = False if not ok: + logging.getLogger(__name__).debug( + f"Error activating plugin '{name}': {module.error}" + ) return None, module.error self.pluginActivated.emit(name, pluginObject) @@ -680,6 +686,9 @@ self.__activeModules[name] = module return obj, "" except PluginActivationError as err: + logging.getLogger(__name__).debug( + f"Error activating plugin '{name}': {str(err)}" + ) return None, str(err) def __canActivatePlugin(self, module):