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 May 27, 2024
1 parent e0507dc commit 748c36b
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 @@ -1427,7 +1427,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 748c36b

Please sign in to comment.