Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
Add logging
Browse files Browse the repository at this point in the history
  • Loading branch information
cevian committed Aug 18, 2020
1 parent 3ee22cc commit 71403f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/pgclient/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func NewClient(cfg *Config, readHist prometheus.ObserverVec) (*Client, error) {
}
connectionPool, err := pgxpool.Connect(context.Background(), connectionStr+fmt.Sprintf(" pool_max_conns=%d pool_min_conns=%d", maxConnections, minConnections))

log.Info("msg", util.MaskPassword(connectionStr), "numCopiers", numCopiers)
log.Info("msg", util.MaskPassword(connectionStr), "numCopiers", numCopiers, "pool_max_conns", maxConnections, "pool_min_conns", minConnections)

if err != nil {
log.Error("err creating connection pool for new client", util.MaskPassword(err.Error()))
Expand Down

0 comments on commit 71403f8

Please sign in to comment.