From 4b2f8686fae748692890766b15a0ec743dfdbf05 Mon Sep 17 00:00:00 2001 From: AstaFrode Date: Thu, 6 Jul 2023 16:35:08 +0800 Subject: [PATCH] update track (#77) --- node/tracker.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/node/tracker.go b/node/tracker.go index 6dcef27..31a8937 100644 --- a/node/tracker.go +++ b/node/tracker.go @@ -282,12 +282,13 @@ func (n *Node) storageData(roothash string, segment []pattern.SegmentDataInfo, m err = n.WriteFileAction(addr.ID, roothash, fpath) if err != nil { failed = true - return errors.Wrapf(err, "[WriteFileAction]") + n.Track("err", fmt.Sprintf("[%s] [WriteFileAction] [%s] [%s] err: %v", roothash, accs[i], peerids[i], err)) + break } } } if failed { - return errors.New("some storage nodes failed to transmit") + return errors.New("File storage failure") } return nil }