Skip to content

Commit

Permalink
pinmfs: log error if pin failed
Browse files Browse the repository at this point in the history
  • Loading branch information
BogdanStirbat committed Apr 6, 2021
1 parent ef866a1 commit 98c3865
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/ipfs/pinmfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,9 @@ func pinMFS(
pinTime := time.Now().UTC()
for ps := range lsPinCh {
existingRequestID = ps.GetRequestId()
if ps.GetPin().GetCid() == cid && ps.GetStatus() == pinclient.StatusFailed {
mfslog.Errorf("received StatusFailed while pinning: %v", cid)
}
if ps.GetPin().GetCid() == cid && ps.GetStatus() != pinclient.StatusFailed {
alreadyPinned = true
pinTime = ps.GetCreated().UTC()
Expand Down

0 comments on commit 98c3865

Please sign in to comment.