diff options
Diffstat (limited to 'src/backend/taler-merchant-httpd_post-orders-ID-pay.c')
-rw-r--r-- | src/backend/taler-merchant-httpd_post-orders-ID-pay.c | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/src/backend/taler-merchant-httpd_post-orders-ID-pay.c b/src/backend/taler-merchant-httpd_post-orders-ID-pay.c index 8be93a01..1354d730 100644 --- a/src/backend/taler-merchant-httpd_post-orders-ID-pay.c +++ b/src/backend/taler-merchant-httpd_post-orders-ID-pay.c @@ -1073,6 +1073,9 @@ batch_deposit_cb ( struct PayContext *pc = eg->pc; eg->bdh = NULL; + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "Batch deposit completed with status %u\n", + dr->hr.http_status); GNUNET_assert (GNUNET_YES == pc->suspended); pc->pending_at_eg--; switch (dr->hr.http_status) @@ -1171,6 +1174,11 @@ process_pay_with_exchange ( (void) payto_uri; eg->fo = NULL; + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "Processing payment with exchange %s\n", + (NULL == exchange_handle) + ? "<null>" + : TALER_EXCHANGE_get_base_url (exchange_handle)); GNUNET_assert (GNUNET_YES == pc->suspended); if (NULL == hr) { @@ -1229,6 +1237,8 @@ process_pay_with_exchange ( &dc->cdd.h_denom_pub); if (NULL == denom_details) { + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "Denomination not found, re-fetching /keys\n"); if (! eg->tried_force_keys) { /* let's try *forcing* a re-download of /keys from the exchange. @@ -1270,6 +1280,8 @@ process_pay_with_exchange ( { if (! eg->tried_force_keys) { + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "Denomination not audited by trusted auditor, re-fetching /keys\n"); /* let's try *forcing* a re-download of /keys from the exchange. Maybe the wallet has seen auditors that we missed. */ eg->tried_force_keys = true; @@ -1301,7 +1313,7 @@ process_pay_with_exchange ( if (is_age_restricted_denom && (0 < pc->minimum_age)) { - /* Minimum age given and restricted coind provided: We need to verify the + /* Minimum age given and restricted coin provided: We need to verify the * minimum age */ unsigned int code = 0; @@ -1372,6 +1384,9 @@ AGE_FAIL: { GNUNET_break (0); pc->pending_at_eg--; + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "Group size zero, %u batch transactions remain pending\n", + pc->pending_at_eg); if (0 == pc->pending_at_eg) execute_pay_transaction (pc); return; @@ -1404,6 +1419,9 @@ AGE_FAIL: dc->wire_fee = *wire_fee; GNUNET_assert (NULL != pc->wm); } + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "Initiating batch deposit with %u coins\n", + group_size); eg->bdh = TALER_EXCHANGE_batch_deposit (exchange_handle, &dcd, group_size, @@ -2679,7 +2697,7 @@ handle_pay_timeout (void *cls) pc->timeout_task = NULL; GNUNET_assert (GNUNET_YES == pc->suspended); - GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, + GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Resuming pay with error after timeout\n"); resume_pay_with_error (pc, MHD_HTTP_GATEWAY_TIMEOUT, |