Skip to content

Commit

Permalink
Change to metricset logger
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelsaks committed Dec 15, 2024
1 parent 2046288 commit 1123f12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metricbeat/module/pgbouncer/mem/mem.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func (m *MetricSet) Fetch(ctx context.Context, reporter mb.ReporterV2) error {
tmpData, err := schema.Apply(result)
if err != nil {
// Log the error and skip this iteration if schema application fails.
log.Printf("Error applying schema: %v", err)
m.Logger().Errorf("Error applying schema: %v", err)
continue
}

Expand Down

0 comments on commit 1123f12

Please sign in to comment.