Glances writing lots of Docker Error message in logs file #1561

This commit is contained in:
nicolargo 2019-11-21 21:50:53 +01:00
parent 7228a915bb
commit 2677448081

View File

@ -132,6 +132,7 @@ class Export(GlancesExport):
try:
self.client.write_points(self._normalize(name, columns, points))
except Exception as e:
logger.error("Cannot export {} stats to InfluxDB ({})".format(name, e))
# Log level set to debug instead of error (see: issue #1561)
logger.debug("Cannot export {} stats to InfluxDB ({})".format(name, e))
else:
logger.debug("Export {} stats to InfluxDB".format(name))