Skip to content

Commit

Permalink
feat: add log info (#270)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidebianchi authored Dec 16, 2024
1 parent 9c38655 commit c89d4ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/collector/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ func (c *Collector) Collect(ch chan<- prometheus.Metric) {
if err == nil {
result = ResultSuccess
} else {
c.logger.Errorf("failed to generate metric: %s", err)
c.logger.Errorf("failed to generate metric", "err", err, "name", srv.name)

result = ResultError
}
Expand Down

0 comments on commit c89d4ff

Please sign in to comment.