diff -r 0ea234b2f6e9 -r 437fb6ba91bd eric6/PluginManager/PluginManager.py --- a/eric6/PluginManager/PluginManager.py Sun May 30 15:48:13 2021 +0200 +++ b/eric6/PluginManager/PluginManager.py Sun May 30 16:05:38 2021 +0200 @@ -13,6 +13,7 @@ import types import importlib import contextlib +import logging from PyQt5.QtCore import ( pyqtSignal, QObject, QDate, QFile, QFileInfo, QUrl, QIODevice @@ -409,6 +410,10 @@ if not hasattr(module, "autoactivate"): module.error = self.tr( "Module is missing the 'autoactivate' attribute.") + logging.debug( + "{0}: Module is missing the 'autoactivate' attribute." + .format(name) + ) self.__failedModules[name] = module raise PluginLoadError(name) if getattr(module, "autoactivate", False): @@ -422,6 +427,11 @@ "Module is missing the 'pluginType' " "and/or 'pluginTypename' attributes." ) + logging.debug( + "{0}: Module is missing the 'pluginType' " + "and/or 'pluginTypename' attributes." + .format(name) + ) self.__failedModules[name] = module raise PluginLoadError(name) else: @@ -445,6 +455,10 @@ module = types.ModuleType(name) module.error = self.tr( "Module failed to load. Error: {0}").format(str(err)) + logging.debug( + "{0}: Module failed to load. Error: {1}" + .format(name, str(err)) + ) self.__failedModules[name] = module print("Error loading plug-in module:", name) print(str(err)) @@ -622,10 +636,15 @@ except TypeError: module.error = self.tr( "Incompatible plugin activation method.") + logging.debug( + "{0}: Incompatible plugin activation method." + .format(name) + ) obj = None ok = True except Exception as err: module.error = str(err) + logging.debug("{0}: {1}".format(name, str(err))) obj = None ok = False if not ok: