We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cea206d + 40e9f90 commit 720262aCopy full SHA for 720262a
pkg/database/driver.go
@@ -44,7 +44,7 @@ func (c RetryConnector) Connect(ctx context.Context) (driver.Conn, error) {
44
}
45
},
46
OnSuccess: func(elapsed time.Duration, attempt uint64, _ error) {
47
- if attempt > 0 {
+ if attempt > 1 {
48
c.driver.Logger.Info("Reconnected to database")
49
// c.driver.Logger.Info(1, "Reconnected to database",
50
// zap.Duration("after", elapsed), zap.Uint64("attempts", attempt+1))
0 commit comments