debug logging
This commit is contained in:
parent
e83015c8a3
commit
9ded20518c
@ -210,10 +210,14 @@ check_log (struct TALER_FAKEBANK_Handle *h)
|
|||||||
if (GNUNET_YES == t->checked)
|
if (GNUNET_YES == t->checked)
|
||||||
continue;
|
continue;
|
||||||
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
|
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
|
||||||
"%s -> %s (%s)\n",
|
"%s -> %s (%s) %s (%s)\n",
|
||||||
t->debit_account,
|
t->debit_account,
|
||||||
t->credit_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");
|
"Did not find matching transaction! I have:\n");
|
||||||
check_log (h);
|
check_log (h);
|
||||||
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
|
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_debit,
|
||||||
want_credit,
|
want_credit,
|
||||||
TALER_amount2s (want_amount),
|
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");
|
"Did not find matching transaction!\nI have:\n");
|
||||||
check_log (h);
|
check_log (h);
|
||||||
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
|
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_debit,
|
||||||
(unsigned long long) want_credit,
|
(unsigned long long) want_credit,
|
||||||
TALER_amount2s (want_amount),
|
TALER_amount2s (want_amount),
|
||||||
|
@ -135,7 +135,6 @@ check_bank_transfer_run (void *cls,
|
|||||||
0,
|
0,
|
||||||
&amount_ptr));
|
&amount_ptr));
|
||||||
amount = *amount_ptr;
|
amount = *amount_ptr;
|
||||||
|
|
||||||
GNUNET_assert (GNUNET_OK ==
|
GNUNET_assert (GNUNET_OK ==
|
||||||
TALER_TESTING_get_trait_payto (deposit_cmd,
|
TALER_TESTING_get_trait_payto (deposit_cmd,
|
||||||
TALER_TESTING_PT_DEBIT,
|
TALER_TESTING_PT_DEBIT,
|
||||||
|
Loading…
Reference in New Issue
Block a user