Skip to content

Commit

Permalink
change to loggable dsn
Browse files Browse the repository at this point in the history
Signed-off-by: PaulTorm <[email protected]>
  • Loading branch information
PaulTorm committed Jan 16, 2025
1 parent 7d4c278 commit 29901c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/postgres_exporter/postgres_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ func (e *Exporter) scrape(ch chan<- prometheus.Metric) {
if err := e.scrapeDSN(ch, dsn); err != nil {
errorsCount++

logger.Error("error scraping dsn", "err", err, "dsn", dsn)
logger.Error("error scraping dsn", "err", err, "dsn", loggableDSN(dsn))

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

0 comments on commit 29901c9

Please sign in to comment.