Skip to content
This repository has been archived by the owner on Dec 29, 2020. It is now read-only.

Commit

Permalink
fix(postgres): reduce log level for invalid/NaN values to debug (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube authored Jan 7, 2020
1 parent 1518cc1 commit 7eb4551
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion postgres/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 7eb4551

Please sign in to comment.