Skip to content

Commit

Permalink
fix: log reject info with proposal cid
Browse files Browse the repository at this point in the history
rather than deal id
  • Loading branch information
LinZexiao committed May 17, 2023
1 parent 360097f commit daaee6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storageprovider/deal_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ func (storageDealPorcess *StorageDealProcessImpl) SendSignedResponse(ctx context
// StorageDealRejecting(RejectDeal)->StorageDealFailing(FailDeal)
func (storageDealPorcess *StorageDealProcessImpl) HandleReject(ctx context.Context, deal *types.MinerDeal, event storagemarket.StorageDealStatus, err error) error {
storageDealPorcess.eventPublisher.Publish(storagemarket.ProviderEventDealRejected, deal)
log.Infof("deal %d rejected: %s", deal.DealID, err)
log.Infof("deal rejected (proposal cid: %s ): %s", deal.ProposalCid, err)

deal.State = event
deal.Message = err.Error()
Expand Down

0 comments on commit daaee6c

Please sign in to comment.