Skip to content

Commit 87d73e3

Browse files
Reduce the log level on dqlite retry errors
1 parent 4b54bee commit 87d73e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/drivers/generic/generic.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,9 @@ func (d *Generic) execute(ctx context.Context, sql string, args ...interface{})
199199
wait := strategy.Backoff(backoff.Linear(100 + time.Millisecond))
200200
for i := uint(0); i < 20; i++ {
201201
if i > 2 {
202-
logrus.Infof("EXEC (%d) %v : %s", i, args, Stripped(sql))
202+
logrus.Debugf("EXEC (try: %d) %v : %s", i, args, Stripped(sql))
203203
} else {
204-
logrus.Tracef("EXEC (%d) %v : %s", i, args, Stripped(sql))
204+
logrus.Tracef("EXEC (try: %d) %v : %s", i, args, Stripped(sql))
205205
}
206206
result, err = d.DB.ExecContext(ctx, sql, args...)
207207
if err != nil && d.Retry != nil && d.Retry(err) {

0 commit comments

Comments
 (0)