Skip to content

Commit

Permalink
fixed "unsupported value type" log entries, spamming stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
tbe committed Jun 23, 2023
1 parent b4feabb commit fe06926
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pg_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,10 @@ func newHandler(metrics collector.Metrics, scrapers []collector.Scraper) http.Ha
r = r.WithContext(ctx)
}
}
level.Debug(log).Log("collect query:", params)

// Check if we have some "collect[]" query parameters.
if len(params) > 0 {
level.Debug(log).Log("collectquery:", params)
filters := make(map[string]bool)
for _, param := range params {
filters[param] = true
Expand Down

0 comments on commit fe06926

Please sign in to comment.