Skip to content

Commit

Permalink
Make passive checkpoint logs trace level
Browse files Browse the repository at this point in the history
  • Loading branch information
hifi committed Jun 4, 2024
1 parent 6f08697 commit 2241e45
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion db.go
Original file line number Diff line number Diff line change
Expand Up @@ -1423,7 +1423,11 @@ func (db *DB) execCheckpoint(mode string) (err error) {
if err := db.db.QueryRow(rawsql).Scan(&row[0], &row[1], &row[2]); err != nil {
return err
}
db.Logger.Debug("checkpoint", "mode", mode, "result", fmt.Sprintf("%d,%d,%d", row[0], row[1], row[2]))
if mode == CheckpointModePassive {
db.Logger.Log(context.TODO(), LogLevelTrace, "checkpoint", "mode", mode, "result", fmt.Sprintf("%d,%d,%d", row[0], row[1], row[2]))
} else {
db.Logger.Debug("checkpoint", "mode", mode, "result", fmt.Sprintf("%d,%d,%d", row[0], row[1], row[2]))
}

// Reacquire the read lock immediately after the checkpoint.
if err := db.acquireReadLock(); err != nil {
Expand Down

0 comments on commit 2241e45

Please sign in to comment.