aboutsummaryrefslogtreecommitdiff
path: root/src/bank-lib
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/bank-lib
parente83015c8a3ee37ef2c8eb3d5236a6bbbdcab95df (diff)
debug logging
Diffstat (limited to 'src/bank-lib')
-rw-r--r--src/bank-lib/fakebank.c12
1 files changed, 8 insertions, 4 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),