diff --git a/db.go b/db.go index bb015c06..03f99873 100644 --- a/db.go +++ b/db.go @@ -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 {