aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-01-15 15:27:21 +0100
committerChristian Grothoff <christian@grothoff.org>2020-01-15 15:27:21 +0100
commit9ded20518c5a11a43b2b05d04d0922b1a1d36e2b (patch)
tree9fb63d06fdafa23e27c55a77cbb6ac4f7d307886 /src
parente83015c8a3ee37ef2c8eb3d5236a6bbbdcab95df (diff)
debug logging
Diffstat (limited to 'src')
-rw-r--r--src/bank-lib/fakebank.c12
-rw-r--r--src/lib/testing_api_cmd_bank_check.c1
2 files changed, 8 insertions, 5 deletions
diff --git a/src/bank-lib/fakebank.c b/src/bank-lib/fakebank.c
index ba0c93ff0..b318119e3 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 c7a3935ba..22a4e9bf5 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,