Skip to content

Commit

Permalink
implement warn instead of err
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelsaks committed Dec 22, 2024
1 parent de66b87 commit 5304c50
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion metricbeat/module/pgbouncer/lists/lists.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ func (m *MetricSet) Fetch(ctx context.Context, reporter mb.ReporterV2) error {
for _, s := range results {
listValue, ok := s["list"].(string)
if !ok {
return fmt.Errorf("expected string type for 'list' but got something else")
m.Logger().Warnf("warning: expected string type for 'list', but got %T", s["list"])
continue
}
resultMap[listValue] = s["items"]
}
Expand Down

0 comments on commit 5304c50

Please sign in to comment.