From 147220a0d9991fbc6373644fbec4a7e1c6bb43ea Mon Sep 17 00:00:00 2001 From: kevkevin Date: Thu, 23 May 2024 15:08:52 -0500 Subject: [PATCH] added some logs for bounty withdrawls (#1666) --- handlers/bounty.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/handlers/bounty.go b/handlers/bounty.go index 895ff57c8..703f43e20 100644 --- a/handlers/bounty.go +++ b/handlers/bounty.go @@ -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 { @@ -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