Refactor logs in binlog_io to reduce output (#15827)

Signed-off-by: yangxuan <xuan.yang@zilliz.com>
pull/15814/head
XuanYang-cn 2022-03-02 16:49:55 +08:00 committed by GitHub
parent d183748484
commit 63eec7ffc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -201,7 +201,10 @@ func (b *binlogIO) upload(
for err != nil { for err != nil {
select { select {
case <-ctx.Done(): case <-ctx.Done():
log.Warn("ctx done when saving kvs to blob storage", zap.Any("key values", kvs)) log.Warn("ctx done when saving kvs to blob storage",
zap.Int64("collectionID", meta.GetID()),
zap.Int64("segmentID", segID),
zap.Int("number of kvs", len(kvs)))
return nil, errUploadToBlobStorage return nil, errUploadToBlobStorage
default: default:
if err != errStart { if err != errStart {