gnunet-svn
[Top][All Lists]
Advanced

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

[taler-exchange] branch master updated: debug logging


From: gnunet
Subject: [taler-exchange] branch master updated: debug logging
Date: Wed, 15 Jan 2020 15:27:24 +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 9ded2051 debug logging
9ded2051 is described below

commit 9ded20518c5a11a43b2b05d04d0922b1a1d36e2b
Author: Christian Grothoff <address@hidden>
AuthorDate: Wed Jan 15 15:27:21 2020 +0100

    debug logging
---
 src/bank-lib/fakebank.c              | 12 ++++++++----
 src/lib/testing_api_cmd_bank_check.c |  1 -
 2 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/src/bank-lib/fakebank.c b/src/bank-lib/fakebank.c
index ba0c93ff..b318119e 100644
--- a/src/bank-lib/fakebank.c
+++ b/src/bank-lib/fakebank.c
@@ -210,10 +210,14 @@ check_log (struct TALER_FAKEBANK_Handle *h)
     if (GNUNET_YES == t->checked)
       continue;
     GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
-                "%s -> %s (%s)\n",
+                "%s -> %s (%s) %s (%s)\n",
                 t->debit_account,
                 t->credit_account,
-                TALER_amount2s (&t->amount));
+                TALER_amount2s (&t->amount),
+                (T_DEBIT == t->type)
+                ? t->subject.debit.exchange_base_url
+                : TALER_B2S (&t->subject.credit.reserve_pub),
+                (T_DEBIT == t->type) ? "DEBIT" : "CREDIT");
   }
 }
 
@@ -263,7 +267,7 @@ TALER_FAKEBANK_check_debit (struct TALER_FAKEBANK_Handle *h,
               "Did not find matching transaction! I have:\n");
   check_log (h);
   GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
-              "I wanted: %s->%s (%s) from %s\n",
+              "I wanted: %s->%s (%s) from exchange %s (DEBIT)\n",
               want_debit,
               want_credit,
               TALER_amount2s (want_amount),
@@ -312,7 +316,7 @@ TALER_FAKEBANK_check_credit (struct TALER_FAKEBANK_Handle 
*h,
               "Did not find matching transaction!\nI have:\n");
   check_log (h);
   GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
-              "I wanted:\n%llu -> %llu (%s) with subject %s\n",
+              "I wanted:\n%llu -> %llu (%s) with subject %s (CREDIT)\n",
               (unsigned long long) want_debit,
               (unsigned long long) want_credit,
               TALER_amount2s (want_amount),
diff --git a/src/lib/testing_api_cmd_bank_check.c 
b/src/lib/testing_api_cmd_bank_check.c
index c7a3935b..22a4e9bf 100644
--- a/src/lib/testing_api_cmd_bank_check.c
+++ b/src/lib/testing_api_cmd_bank_check.c
@@ -135,7 +135,6 @@ check_bank_transfer_run (void *cls,
                                                        0,
                                                        &amount_ptr));
     amount = *amount_ptr;
-
     GNUNET_assert (GNUNET_OK ==
                    TALER_TESTING_get_trait_payto (deposit_cmd,
                                                   TALER_TESTING_PT_DEBIT,

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

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