From 98c38657a2996312a9735f482cd6a1188f3fc4a1 Mon Sep 17 00:00:00 2001 From: Bogdan Stirbat Date: Wed, 7 Apr 2021 01:11:04 +0300 Subject: [PATCH] pinmfs: log error if pin failed --- cmd/ipfs/pinmfs.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/ipfs/pinmfs.go b/cmd/ipfs/pinmfs.go index 5d17f3013f3..3fd74baee9d 100644 --- a/cmd/ipfs/pinmfs.go +++ b/cmd/ipfs/pinmfs.go @@ -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()