Skip to content

Commit 292044c

Browse files
committed
change to loggable dsn
1 parent 7d4c278 commit 292044c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/postgres_exporter/postgres_exporter.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ func (e *Exporter) scrape(ch chan<- prometheus.Metric) {
678678
if err := e.scrapeDSN(ch, dsn); err != nil {
679679
errorsCount++
680680

681-
logger.Error("error scraping dsn", "err", err, "dsn", dsn)
681+
logger.Error("error scraping dsn", "err", err, "dsn", loggableDSN(dsn))
682682

683683
if _, ok := err.(*ErrorConnectToServer); ok {
684684
connectionErrorsCount++

0 commit comments

Comments
 (0)