mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-01-09 21:19:05 +00:00
blockfetcher: add more details to errors
Close #3629 Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
This commit is contained in:
parent
29bb3ff1cf
commit
8a154d9189
1 changed files with 3 additions and 3 deletions
|
@ -205,7 +205,7 @@ func (bfs *Service) blockDownloader() {
|
||||||
if isContextCanceledErr(err) {
|
if isContextCanceledErr(err) {
|
||||||
return
|
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)
|
bfs.stopService(true)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -215,7 +215,7 @@ func (bfs *Service) blockDownloader() {
|
||||||
if isContextCanceledErr(err) {
|
if isContextCanceledErr(err) {
|
||||||
return
|
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)
|
bfs.stopService(true)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -238,7 +238,7 @@ func (bfs *Service) blockQueuer() {
|
||||||
default:
|
default:
|
||||||
err := bfs.enqueueBlock(b)
|
err := bfs.enqueueBlock(b)
|
||||||
if err != nil {
|
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)
|
bfs.stopService(true)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue