From 8a154d91894bd6f50334744d15d19a7084c72e94 Mon Sep 17 00:00:00 2001 From: Ekaterina Pavlova Date: Mon, 21 Oct 2024 23:18:39 +0300 Subject: [PATCH] blockfetcher: add more details to errors Close #3629 Signed-off-by: Ekaterina Pavlova --- pkg/services/blockfetcher/blockfetcher.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/services/blockfetcher/blockfetcher.go b/pkg/services/blockfetcher/blockfetcher.go index 11bb28447..5889c72c3 100644 --- a/pkg/services/blockfetcher/blockfetcher.go +++ b/pkg/services/blockfetcher/blockfetcher.go @@ -205,7 +205,7 @@ func (bfs *Service) blockDownloader() { if isContextCanceledErr(err) { return } - bfs.log.Error("failed to objectGet block", zap.Error(err)) + bfs.log.Error("failed to objectGet block", zap.String("oid", blkOid.String()), zap.Error(err)) bfs.stopService(true) return } @@ -215,7 +215,7 @@ func (bfs *Service) blockDownloader() { if isContextCanceledErr(err) { return } - bfs.log.Error("failed to read block", zap.Error(err)) + bfs.log.Error("failed to decode block from stream", zap.String("oid", blkOid.String()), zap.Error(err)) bfs.stopService(true) return } @@ -238,7 +238,7 @@ func (bfs *Service) blockQueuer() { default: err := bfs.enqueueBlock(b) if err != nil { - bfs.log.Error("failed to enqueue block", zap.Error(err)) + bfs.log.Error("failed to enqueue block", zap.Uint32("index", b.Index), zap.Error(err)) bfs.stopService(true) return }