Skip to content

Commit

Permalink
fix logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Termina1 committed Nov 28, 2024
1 parent 4dd88cf commit 5408fdd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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))
}
}
}
Expand Down

0 comments on commit 5408fdd

Please sign in to comment.