fix: more logging in maybeStartBatch error

This commit is contained in:
mx 2021-08-06 16:50:37 +08:00
parent 9dca65634d
commit cfc10e9b52

View File

@ -229,6 +229,11 @@ func (b *CommitBatcher) maybeStartBatch(notif bool) ([]sealiface.CommitBatchRes,
} else {
res, err = b.processBatch(cfg)
}
if err != nil {
log.Warnf("CommitBatcher maybeStartBatch individual:%v processBatch %v", individual, err)
}
if err != nil && len(res) == 0 {
return nil, err
}