From 5408fddebf1ba83c5a5e75ae4ee22f2bf1e93e9b Mon Sep 17 00:00:00 2001 From: Termina1 Date: Thu, 28 Nov 2024 12:32:57 +0200 Subject: [PATCH] fix logging --- sync.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sync.go b/sync.go index 0f6e719..1ef5a07 100644 --- a/sync.go +++ b/sync.go @@ -412,7 +412,7 @@ func (sync *Syncer) FeedBlockDiff(ctx context.Context) (diff protocol.Records, e val := sync.ffit.Value() parcel = append(parcel, protocol.Record(rdt, val)...) if len(val) > MaxParcelSize { - sync.log.WarnCtx(sync.logCtx(ctx), "too big key size", len(val)) + sync.log.WarnCtx(sync.logCtx(ctx), "too big key size", "size", len(val)) } continue } @@ -421,7 +421,7 @@ func (sync *Syncer) FeedBlockDiff(ctx context.Context) (diff protocol.Records, e parcel = append(parcel, protocol.Record('F', rdx.ZipUint64(uint64(id-block)))...) parcel = append(parcel, protocol.Record(rdt, diff)...) if len(diff) > MaxParcelSize { - sync.log.WarnCtx(sync.logCtx(ctx), "too big diff size", len(diff)) + sync.log.WarnCtx(sync.logCtx(ctx), "too big diff size", "size", len(diff)) } } }