Change error message when Plugin init failed

This commit is contained in:
nicolargo 2017-03-21 21:35:17 +01:00
parent 285dcd5b43
commit 5a12dffb58

View File

@ -106,7 +106,7 @@ class GlancesStats(object):
except Exception as e:
# If a plugin can not be log, display a critical message
# on the console but do not crash
logger.critical("Error while initializing the {} plugin (see complete traceback in the log file)".format(name))
logger.critical("Error while initializing the {} plugin ({}})".format(name, e))
logger.error(traceback.format_exc())
def load_plugins(self, args=None):