Skip to content

Commit 9a4dcba

Browse files
committed
style: log
Signed-off-by: Brant <[email protected]>
1 parent a1503cf commit 9a4dcba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: collector/exporter.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ func (e *Exporter) scrape(ctx context.Context, ch chan<- prometheus.Metric) floa
136136
e.instance = instance
137137

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

0 commit comments

Comments
 (0)