From 11e5a7686c1107ec37e4e91004aed23dbf8d143c Mon Sep 17 00:00:00 2001 From: Ben Brooks Date: Thu, 16 May 2024 15:01:59 +0100 Subject: [PATCH] tweak log message variable wording --- db/blip_sync_context.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/db/blip_sync_context.go b/db/blip_sync_context.go index 8285fe0c91..d3035976f1 100644 --- a/db/blip_sync_context.go +++ b/db/blip_sync_context.go @@ -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)