Skip to content

Commit 1487d5a

Browse files
authored
fix: log the error when deals are rejected (not just rejection reason) (#569)
1 parent 762fecc commit 1487d5a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

cmd/boostd/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ func before(cctx *cli.Context) error {
6262
_ = logging.SetLogLevel("db", "INFO")
6363
_ = logging.SetLogLevel("boost-prop", "INFO")
6464
_ = logging.SetLogLevel("modules", "INFO")
65+
_ = logging.SetLogLevel("boost-storage-deal", "INFO")
6566

6667
if cliutil.IsVeryVerbose {
6768
_ = logging.SetLogLevel("boostd", "DEBUG")

storagemarket/provider_loop.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ func (p *Provider) run() {
371371

372372
// The error is not a severe error, so don't log an error, just
373373
// send a message to the client with a rejection reason
374-
p.dealLogger.Infow(deal.DealUuid, "deal acceptance request rejected", "reason", aerr.reason)
374+
p.dealLogger.Infow(deal.DealUuid, "deal acceptance request rejected", "reason", aerr.reason, "error", aerr.error)
375375
dealReq.rsp <- acceptDealResp{ri: &api.ProviderDealRejectionInfo{Accepted: false, Reason: aerr.reason}, err: nil}
376376
}
377377

0 commit comments

Comments
 (0)