Reduce log level of stale notification

This commit is contained in:
Robert Jacob 2020-06-26 13:08:11 +02:00
parent b757b59f9f
commit 47d5027807

View file

@ -138,7 +138,7 @@ func (c *netatmoCollector) collectData(ch chan<- prometheus.Metric, device *neta
date := time.Unix(*data.LastMeasure, 0)
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
}