Skip to content

Commit 4de9c7c

Browse files
committed
Add logging for when enqueueing rechecks.
1 parent 65d4252 commit 4de9c7c

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

internal/verifier/change_stream.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ func (verifier *Verifier) HandleChangeStreamEvents(ctx context.Context, batch []
9090
}
9191
}
9292

93+
verifier.logger.Debug().
94+
Int("count", len(docIDs)).
95+
Msg("Persisting rechecks for change events.")
96+
9397
return verifier.insertRecheckDocs(ctx, dbNames, collNames, docIDs, dataSizes)
9498
}
9599

internal/verifier/recheck.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ func (verifier *Verifier) InsertFailedCompareRecheckDocs(
4747
collNames[i] = collName
4848
}
4949

50+
verifier.logger.Debug().
51+
Int("count", len(documentIDs)).
52+
Msg("Persisting rechecks for mismatched or missing documents.")
53+
5054
return verifier.insertRecheckDocs(
5155
context.Background(),
5256
dbNames,

0 commit comments

Comments
 (0)