Skip to content

Commit

Permalink
style: log
Browse files Browse the repository at this point in the history
Signed-off-by: Brant <[email protected]>
  • Loading branch information
Brant-lzh committed Aug 31, 2024
1 parent a1503cf commit 9a4dcba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion collector/exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func (e *Exporter) scrape(ctx context.Context, ch chan<- prometheus.Metric) floa
e.instance = instance

if err := instance.Ping(); err != nil {
level.Error(e.logger).Log("msg", "Error pinging mysqld", "err", err)
level.Error(e.logger).Log("msg", "Error pinging mysqld", "target", e.getTargetFromDsn(), "err", err)
return 0.0
}

Expand Down

0 comments on commit 9a4dcba

Please sign in to comment.