gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-cashless2ecash] branch master updated: fix: enhance logging


From: gnunet
Subject: [taler-cashless2ecash] branch master updated: fix: enhance logging
Date: Mon, 03 Jun 2024 17:40:36 +0200

This is an automated email from the git hooks/post-receive script.

joel-haeberli pushed a commit to branch master
in repository cashless2ecash.

The following commit(s) were added to refs/heads/master by this push:
     new 763e4be  fix: enhance logging
763e4be is described below

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

    fix: enhance logging
---
 c2ec/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
index 9f1be4a..3976633 100644
--- 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.*

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]