mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-22 16:51:35 +03:00
Change error message when Plugin init failed
This commit is contained in:
parent
285dcd5b43
commit
5a12dffb58
@ -106,7 +106,7 @@ class GlancesStats(object):
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
# If a plugin can not be log, display a critical message
|
# If a plugin can not be log, display a critical message
|
||||||
# on the console but do not crash
|
# 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())
|
logger.error(traceback.format_exc())
|
||||||
|
|
||||||
def load_plugins(self, args=None):
|
def load_plugins(self, args=None):
|
||||||
|
Loading…
Reference in New Issue
Block a user