mirror of
https://github.com/steinhobelgruen/netatmo-exporter.git
synced 2024-11-24 18:23:56 +00:00
Reduce log level of stale notification
This commit is contained in:
parent
b757b59f9f
commit
47d5027807
|
@ -138,7 +138,7 @@ func (c *netatmoCollector) collectData(ch chan<- prometheus.Metric, device *neta
|
||||||
|
|
||||||
date := time.Unix(*data.LastMeasure, 0)
|
date := time.Unix(*data.LastMeasure, 0)
|
||||||
if time.Since(date) > c.staleThreshold {
|
if time.Since(date) > c.staleThreshold {
|
||||||
c.log.Warnf("Data is stale for %s: %s > %s", moduleName, time.Since(date), c.staleThreshold)
|
c.log.Debugf("Data is stale for %s: %s > %s", moduleName, time.Since(date), c.staleThreshold)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue