cashless2ecash

cashless2ecash: pay with cards for digital cash (experimental)
Log | Files | Refs | README

commit 763e4be4a15815ab061187f7da01e7d296498c17
parent dabf2c114669d037131d865e8ea78cdcd5b44d53
Author: Joel-Haeberli <haebu@rubigen.ch>
Date:   Mon,  3 Jun 2024 17:40:33 +0200

fix: enhance logging

Diffstat:
Mc2ec/api-wire-gateway.go | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/c2ec/api-wire-gateway.go b/c2ec/api-wire-gateway.go @@ -263,8 +263,13 @@ func transfer(res http.ResponseWriter, req *http.Request) { res.WriteHeader(HTTP_INTERNAL_SERVER_ERROR) return } - refundClient.Refund(tid) + err = refundClient.Refund(tid) + if err != nil { + LogWarn("wire-gateway-api", "failed refunding") + LogError("wire-gateway-api", err) + } } + setLastResponseCodeForLogger(HTTP_OK) } // :query start: *Optional.*