Skip to content

Commit

Permalink
feat: add slogx error
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulguptajss committed Oct 8, 2024
1 parent 3747086 commit 06cf8c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/collectors/keyperf/keyperf.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ func (kp *KeyPerf) buildCounters() {
if err != nil {
// It's acceptable to continue even if there are errors, as the remaining counters will still be processed.
// Any counters that require counter metadata will be skipped.
kp.Logger.Error("Failed to load static counter definitions", slog.Any("error", err))
kp.Logger.Error("Failed to load static counter definitions", slogx.Err(err))
}

for k, v := range kp.Prop.Metrics {
Expand Down

0 comments on commit 06cf8c7

Please sign in to comment.