From 47d50278071c69c12aafd631ab7ace2b864bd9b6 Mon Sep 17 00:00:00 2001 From: Robert Jacob Date: Fri, 26 Jun 2020 13:08:11 +0200 Subject: [PATCH] Reduce log level of stale notification --- collector.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collector.go b/collector.go index 78fd4d9..0b55b1c 100644 --- a/collector.go +++ b/collector.go @@ -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 }