Skip to content

Commit

Permalink
chore: Add lookup and match decision add error logs
Browse files Browse the repository at this point in the history
  • Loading branch information
bgins committed Jan 30, 2025
1 parent ae7755a commit c56ccfb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/solver/matcher/matcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ func GetMatchingDeals(
OrderOldestFirst: true,
})
if err != nil {
log.Error("get resource offers failed", err)
span.SetStatus(codes.Error, "get resource offers failed")
span.RecordError(err)
return nil, err
Expand All @@ -53,6 +54,7 @@ func GetMatchingDeals(
OrderOldestFirst: true,
})
if err != nil {
log.Error("get job offers failed", err)
span.SetStatus(codes.Error, "get job offers failed")
span.RecordError(err)
return nil, err
Expand Down Expand Up @@ -186,6 +188,7 @@ func GetMatchingDeals(
span.AddEvent("add_match_decision.start")
_, err := db.AddMatchDecision(matchingOffer.ID, jobOffer.ID, addDealID, true)
if err != nil {
log.Error("unable to add match decision", err)
span.SetStatus(codes.Error, "unable to add match decision")
span.RecordError(err)
return nil, err
Expand Down

0 comments on commit c56ccfb

Please sign in to comment.