Skip to content
This repository was archived by the owner on Jan 10, 2023. It is now read-only.

Commit 5975ba6

Browse files
committed
verbose auth errors
1 parent cc86e0a commit 5975ba6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ func (asc *asCollector) Collect(ch chan<- prometheus.Metric) {
137137
}
138138
if asc.username != "" {
139139
if err := conn.Authenticate(asc.username, []byte(asc.password)); err != nil {
140+
log.Printf("auth error: %s", err)
140141
ch <- prometheus.MustNewConstMetric(upDesc, prometheus.GaugeValue, 0.0)
141142
return
142143
}

0 commit comments

Comments
 (0)