Skip to content

Commit

Permalink
added some logs for bounty withdrawls (stakwork#1666)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevkevinpal authored May 23, 2024
1 parent d357644 commit 147220a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions handlers/bounty.go
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,7 @@ func (h *bountyHandler) MakeBountyPayment(w http.ResponseWriter, r *http.Request
req, _ := http.NewRequest(http.MethodPost, url, bytes.NewBuffer(jsonBody))
req.Header.Set("x-user-token", config.RelayAuthKey)
req.Header.Set("Content-Type", "application/json")
log.Printf("Making Bounty Payment: amount: %d, pubkey: %s, route_hint: %s", amount, assignee.OwnerPubKey, assignee.OwnerRouteHint)
res, err := h.httpClient.Do(req)

if err != nil {
Expand Down Expand Up @@ -615,8 +616,7 @@ func (h *bountyHandler) BountyBudgetWithdraw(w http.ResponseWriter, r *http.Requ
return
}

fmt.Println("[BountyBudgetWithdraw] Logging body:")
fmt.Println(body)
log.Printf("[BountyBudgetWithdraw] Logging body: orguuid: %s, pubkey: %s, invoice: %s", request.OrgUuid, pubKeyFromAuth, request.PaymentRequest)

// check if user is the admin of the workspace
// or has a withdraw bounty budget role
Expand Down

0 comments on commit 147220a

Please sign in to comment.