summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2019-03-14 18:48:11 +0100
committerMarcello Stanisci <stanisci.m@gmail.com>2019-03-14 18:48:11 +0100
commit115ecfbc4956df71a09ece4d5f274841cc31ff85 (patch)
tree9d32ed316ac65987ea20eb5f0d73ddffdfffc006
parent5df58a77c51ee84452381473f5b3b2bdf228da29 (diff)
downloadexchange-115ecfbc4956df71a09ece4d5f274841cc31ff85.tar.gz
exchange-115ecfbc4956df71a09ece4d5f274841cc31ff85.tar.bz2
exchange-115ecfbc4956df71a09ece4d5f274841cc31ff85.zip
Fakebank debug
-rw-r--r--src/bank-lib/fakebank.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/bank-lib/fakebank.c b/src/bank-lib/fakebank.c
index da6bb155..19f4816e 100644
--- a/src/bank-lib/fakebank.c
+++ b/src/bank-lib/fakebank.c
@@ -508,6 +508,7 @@ handle_admin_add_incoming (struct TALER_FAKEBANK_Handle *h,
uint64_t credit_account;
const char *base_url;
struct TALER_Amount amount;
+ char *amount_s;
struct GNUNET_JSON_Specification spec[] = {
GNUNET_JSON_spec_string ("subject", &subject),
GNUNET_JSON_spec_uint64 ("debit_account", &debit_account),
@@ -531,11 +532,15 @@ handle_admin_add_incoming (struct TALER_FAKEBANK_Handle *h,
&amount,
subject,
base_url);
+ amount_s = TALER_amount_to_string (&amount);
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
- "Receiving incoming wire transfer: %llu->%llu from %s\n",
+ "Receiving incoming wire transfer: %llu->%llu, subject: %s, amount: %s, from %s\n",
(unsigned long long) debit_account,
(unsigned long long) credit_account,
+ subject,
+ amount_s,
base_url);
+ GNUNET_free (amount_s);
}
json_decref (json);