From 2ead337b48fc6288f22008f3451069df63c1afdc Mon Sep 17 00:00:00 2001 From: Anton Evangelatov Date: Sun, 22 Apr 2018 15:41:18 +0200 Subject: [PATCH] swarm/storage: improve tracing for missing reference --- swarm/storage/chunker.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/swarm/storage/chunker.go b/swarm/storage/chunker.go index f9b3fe2746..40af0499fa 100644 --- a/swarm/storage/chunker.go +++ b/swarm/storage/chunker.go @@ -519,9 +519,9 @@ func (self *LazyChunkReader) join(b []byte, off int64, eoff int64, depth int, tr childKey := chunkData[8+j*self.hashSize : 8+(j+1)*self.hashSize] chunkData, err := self.getter.Get(Reference(childKey)) if err != nil { - log.Error("lazychunkreader.join", "key", childKey, "err", err) + log.Error("lazychunkreader.join", "key", fmt.Sprintf("%x", childKey), "err", err) select { - case errC <- fmt.Errorf("chunk %v-%v not found", off, off+treeSize): + case errC <- fmt.Errorf("chunk %v-%v not found; key: %s", off, off+treeSize, fmt.Sprintf("%x", childKey)): case <-quitC: } return