From 7eb455103befd22855575a918683df4b6c1739e5 Mon Sep 17 00:00:00 2001 From: Sean Sube Date: Tue, 7 Jan 2020 14:01:11 -0600 Subject: [PATCH] fix(postgres): reduce log level for invalid/NaN values to debug (#59) --- postgres/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postgres/client.go b/postgres/client.go index ec9db7c..042aef1 100644 --- a/postgres/client.go +++ b/postgres/client.go @@ -386,7 +386,7 @@ func (c *Client) WriteSample(s *model.Sample, txn *sql.Tx, stmt *sql.Stmt) (writ v := float64(s.Value) if math.IsNaN(v) || math.IsInf(v, 0) { - level.Warn(c.logger).Log("msg", "cannot write sample with invalid value", "value", v, "sample", s) + level.Debug(c.logger).Log("msg", "cannot write sample with invalid value", "value", v, "sample", s) return false, nil }