From cfc10e9b524bf5919d1c6031df70f6d0a6e4e60f Mon Sep 17 00:00:00 2001 From: mx Date: Fri, 6 Aug 2021 16:50:37 +0800 Subject: [PATCH] fix: more logging in maybeStartBatch error --- extern/storage-sealing/commit_batch.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/extern/storage-sealing/commit_batch.go b/extern/storage-sealing/commit_batch.go index e9ace820e29..f809481bafc 100644 --- a/extern/storage-sealing/commit_batch.go +++ b/extern/storage-sealing/commit_batch.go @@ -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 }