Skip to content

Commit

Permalink
Merge pull request #3636 from nspcc-dev/blockfetcher-errors
Browse files Browse the repository at this point in the history
blockfetcher: add more details to errors
  • Loading branch information
AnnaShaleva authored Oct 22, 2024
2 parents a0def2e + 8a154d9 commit e82d9a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/services/blockfetcher/blockfetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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
}
Expand All @@ -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
}
Expand Down

0 comments on commit e82d9a1

Please sign in to comment.