gnunet-svn
[Top][All Lists]
Advanced

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

[taler-exchange] branch master updated: -improve logging


From: gnunet
Subject: [taler-exchange] branch master updated: -improve logging
Date: Sun, 28 Jan 2024 14:12:33 +0100

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

grothoff pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new 8ee6d2a6 -improve logging
8ee6d2a6 is described below

commit 8ee6d2a6c3c43c9a720814155f070f7463b08cbe
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sun Jan 28 14:12:30 2024 +0100

    -improve logging
---
 src/bank-lib/fakebank_tbr_get_history.c | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/src/bank-lib/fakebank_tbr_get_history.c 
b/src/bank-lib/fakebank_tbr_get_history.c
index 79678636..1c0cdd78 100644
--- a/src/bank-lib/fakebank_tbr_get_history.c
+++ b/src/bank-lib/fakebank_tbr_get_history.c
@@ -72,8 +72,8 @@ TALER_FAKEBANK_tbr_get_history_incoming (
     cc->ctx = hc;
 
     GNUNET_log (GNUNET_ERROR_TYPE_INFO,
-                "Handling /accounts/$USERNAME/taler-revenue/history/incoming 
request %p\n",
-                connection);
+                "Handling /accounts/%s/taler-revenue/history/incoming 
request\n",
+                account);
     if (GNUNET_OK !=
         (ret = TALER_FAKEBANK_common_parse_history_args (h,
                                                          connection,
@@ -93,6 +93,9 @@ TALER_FAKEBANK_tbr_get_history_incoming (
     {
       GNUNET_assert (0 ==
                      pthread_mutex_unlock (&h->big_lock));
+      GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+                  "Account %s is unknown\n",
+                  account);
       return TALER_MHD_reply_with_error (connection,
                                          MHD_HTTP_NOT_FOUND,
                                          TALER_EC_BANK_UNKNOWN_ACCOUNT,
@@ -153,10 +156,14 @@ TALER_FAKEBANK_tbr_get_history_incoming (
         GNUNET_assert (0 ==
                        pthread_mutex_unlock (&h->big_lock));
         if (overflow)
+        {
+          GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+                      "Transactions lost due to RAM limits\n");
           return TALER_MHD_reply_with_ec (
             connection,
             TALER_EC_BANK_ANCIENT_TRANSACTION_GONE,
             NULL);
+        }
         goto finish;
       }
       if (h->in_shutdown)
@@ -282,6 +289,8 @@ finish:
   {
     GNUNET_break (in_shutdown ||
                   (! GNUNET_TIME_absolute_is_future (hc->timeout)));
+    GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+                "Zero transactions found\n");
     return TALER_MHD_reply_static (connection,
                                    MHD_HTTP_NO_CONTENT,
                                    NULL,

-- 
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]