Skip to content

Commit

Permalink
update track (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
AstaFrode authored Jul 6, 2023
1 parent 5174f44 commit 4b2f868
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions node/tracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 4b2f868

Please sign in to comment.