From 116449e4e9b6f03e92c83ea7edc57aa32c8ed662 Mon Sep 17 00:00:00 2001 From: kevkevin Date: Thu, 23 May 2024 14:15:14 -0500 Subject: [PATCH] added some logs for bounty withdrawls --- 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