Skip to content

Commit

Permalink
dagstore pieceReader: add debug log on stream restart
Browse files Browse the repository at this point in the history
  • Loading branch information
magik6k committed Nov 26, 2021
1 parent 331702c commit 9110e6f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions markets/dagstore/piecereader.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ func (p *pieceReader) ReadAt(b []byte, off int64) (n int, err error) {
p.r = nil
}

log.Debugw("pieceReader new stream", "at", p.rAt, "off", off-p.rAt)

p.rAt = off
p.r, _, err = p.api.FetchUnsealedPiece(p.ctx, p.pieceCid, uint64(p.rAt))
if err != nil {
Expand Down

0 comments on commit 9110e6f

Please sign in to comment.