Skip to content

Commit

Permalink
tweak log message variable wording
Browse files Browse the repository at this point in the history
  • Loading branch information
bbrks committed May 16, 2024
1 parent f525291 commit 11e5a76
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions db/blip_sync_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -690,11 +690,11 @@ func (bsc *BlipSyncContext) sendRevision(sender *blip.Sender, docID, revID strin
history := toHistory(rev.History, knownRevs, maxHistory)
properties := blipRevMessageProperties(history, rev.Deleted, seq, replacedRevID)
if base.LogDebugEnabled(bsc.loggingCtx, base.KeySync) {
originalRevMsg := ""
replacedRevMsg := ""
if replacedRevID != "" {
originalRevMsg = fmt.Sprintf(" (replaced %s)", replacedRevID)
replacedRevMsg = fmt.Sprintf(" (replaced %s)", replacedRevID)
}
base.DebugfCtx(bsc.loggingCtx, base.KeySync, "Sending rev %q %s%s based on %d known, digests: %v", base.UD(docID), revID, originalRevMsg, len(knownRevs), digests(attachmentStorageMeta))
base.DebugfCtx(bsc.loggingCtx, base.KeySync, "Sending rev %q %s%s based on %d known, digests: %v", base.UD(docID), revID, replacedRevMsg, len(knownRevs), digests(attachmentStorageMeta))
}

return bsc.sendRevisionWithProperties(sender, docID, revID, collectionIdx, bodyBytes, attachmentStorageMeta, properties, seq, nil)
Expand Down

0 comments on commit 11e5a76

Please sign in to comment.