Skip to content

Commit

Permalink
fix error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
LexLuthr committed Feb 20, 2025
1 parent 2df0fae commit 3ccf892
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions market/mk12/mk12.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func (m *MK12) ExecuteDeal(ctx context.Context, dp *DealParams, clientPeer peer.
// Apply backpressure
wait, err := m.maybeApplyBackpressure(ctx, ds.ClientDealProposal.Proposal.Provider)
if err != nil {
log.Errorf("applying backpressure: %w", err)
log.Errorf("applying backpressure: %s", err.Error())
return &ProviderDealRejectionInfo{
Reason: "internal server error: failed to apply backpressure",
}, nil
Expand All @@ -155,7 +155,7 @@ func (m *MK12) ExecuteDeal(ctx context.Context, dp *DealParams, clientPeer peer.
if m.cfg.Market.StorageMarketConfig.MK12.CIDGravityToken != "" {
accept, msg, err := m.cidGravityCheck(ctx, ds)
if err != nil {
log.Errorf("failed to check cid gravity: %w", err)
log.Errorf("failed to check cid gravity: %s", err.Error())
return &ProviderDealRejectionInfo{
Reason: "internal server error: failed to check cid gravity",
}, nil
Expand Down Expand Up @@ -199,7 +199,7 @@ func (m *MK12) ExecuteDeal(ctx context.Context, dp *DealParams, clientPeer peer.

valid := m.applyFilters(ctx, ds)
if valid != nil && valid.error != nil {
log.Errorf("failed to apply filetrs: %w", valid.error)
log.Errorf("failed to apply filetrs: %s", valid.error.Error())
return &ProviderDealRejectionInfo{
Reason: "internal server error: failed to apply filters",
}, nil
Expand Down

0 comments on commit 3ccf892

Please sign in to comment.