Skip to content

Commit

Permalink
Do not hex-encode CIDs in logs (#561)
Browse files Browse the repository at this point in the history
  • Loading branch information
ribasushi authored Jul 23, 2021
1 parent 9ef0c55 commit f15eef9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storagemarket/impl/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ func (p *Provider) ImportDataForDeal(ctx context.Context, propCid cid.Cid, data
// Verify CommP matches
if !pieceCid.Equals(d.Proposal.PieceCID) {
cleanup()
return xerrors.Errorf("given data does not match expected commP (got: %x, expected %x)", pieceCid, d.Proposal.PieceCID)
return xerrors.Errorf("given data does not match expected commP (got: %s, expected %s)", pieceCid, d.Proposal.PieceCID)
}

return p.deals.Send(propCid, storagemarket.ProviderEventVerifiedData, tempfi.Path(), filestore.Path(""))
Expand Down

0 comments on commit f15eef9

Please sign in to comment.