Fakebank debug

This commit is contained in:
Marcello Stanisci 2019-03-14 18:48:11 +01:00
parent 5df58a77c5
commit 115ecfbc49
No known key found for this signature in database
GPG Key ID: 8D526861953F4C0F

View File

@ -508,6 +508,7 @@ handle_admin_add_incoming (struct TALER_FAKEBANK_Handle *h,
uint64_t credit_account; uint64_t credit_account;
const char *base_url; const char *base_url;
struct TALER_Amount amount; struct TALER_Amount amount;
char *amount_s;
struct GNUNET_JSON_Specification spec[] = { struct GNUNET_JSON_Specification spec[] = {
GNUNET_JSON_spec_string ("subject", &subject), GNUNET_JSON_spec_string ("subject", &subject),
GNUNET_JSON_spec_uint64 ("debit_account", &debit_account), GNUNET_JSON_spec_uint64 ("debit_account", &debit_account),
@ -531,11 +532,15 @@ handle_admin_add_incoming (struct TALER_FAKEBANK_Handle *h,
&amount, &amount,
subject, subject,
base_url); base_url);
amount_s = TALER_amount_to_string (&amount);
GNUNET_log (GNUNET_ERROR_TYPE_INFO, 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) debit_account,
(unsigned long long) credit_account, (unsigned long long) credit_account,
subject,
amount_s,
base_url); base_url);
GNUNET_free (amount_s);
} }
json_decref (json); json_decref (json);