mirror of
https://github.com/nicolargo/glances.git
synced 2024-11-25 19:17:09 +03:00
Try/catch if InfluxDB is stopped
This commit is contained in:
parent
3f504b8741
commit
ea254cf84a
@ -129,4 +129,7 @@ class Export(GlancesExport):
|
||||
"columns": columns,
|
||||
"points": [points]
|
||||
}]
|
||||
self.client.write_points(data)
|
||||
try:
|
||||
self.client.write_points(data)
|
||||
except Exception as e:
|
||||
logger.critical("Can not export stats to InfluxDB (%s)" % e)
|
||||
|
Loading…
Reference in New Issue
Block a user