From 2caf8dce2ff974ac0900611cff33cbc703362ece Mon Sep 17 00:00:00 2001 From: Sean Sube Date: Tue, 7 Jan 2020 11:06:43 -0600 Subject: [PATCH] fix(postgres): reduce log level for invalid/NaN values to debug --- 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 }