diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-11-11 19:41:27 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-11-11 19:41:27 +0100 |
commit | af14d8eccd300e7ae969079394f4e6ab46decfc5 (patch) | |
tree | 3eb2a2cb2f2ec35503ea54a1dada6baadf5aeb9e /src | |
parent | 94f05e79b7060301aabc293e35611861b6c23915 (diff) |
more logging
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/taler-merchant-httpd_check-payment.c | 14 | ||||
-rw-r--r-- | src/backend/taler-merchant-httpd_pay.c | 3 |
2 files changed, 14 insertions, 3 deletions
diff --git a/src/backend/taler-merchant-httpd_check-payment.c b/src/backend/taler-merchant-httpd_check-payment.c index 85f2d3ea..f0e39c28 100644 --- a/src/backend/taler-merchant-httpd_check-payment.c +++ b/src/backend/taler-merchant-httpd_check-payment.c @@ -462,7 +462,9 @@ MH_handler_check_payment (struct TMH_RequestHandler *rh, parse_contract_terms (cprc)) return cprc->ret; } - + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "Checking payment status for order `%s'\n", + cprc->order_id); GNUNET_assert (NULL != cprc->contract_terms); /* Check if the order has been paid for. */ @@ -489,6 +491,10 @@ MH_handler_check_payment (struct TMH_RequestHandler *rh, } else if (0 == qs) { + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "Order `%s' was not yet paid for session `%s'\n", + cprc->order_id, + cprc->session_id); ret = send_pay_request (cprc); GNUNET_free_non_null (already_paid_order_id); return ret; @@ -517,8 +523,10 @@ MH_handler_check_payment (struct TMH_RequestHandler *rh, } if (0 == qs) { - GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, - "not paid yet\n"); + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "Order `%s' (contract `%s') was not yet paid\n", + cprc->order_id, + GNUNET_h2s (&cprc->h_contract_terms)); return send_pay_request (cprc); } GNUNET_break (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT == qs); diff --git a/src/backend/taler-merchant-httpd_pay.c b/src/backend/taler-merchant-httpd_pay.c index e3ecbb6d..fb413834 100644 --- a/src/backend/taler-merchant-httpd_pay.c +++ b/src/backend/taler-merchant-httpd_pay.c @@ -2057,6 +2057,9 @@ begin_transaction (struct PayContext *pc) return; } /* Payment succeeded, save in database */ + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "Contract `%s' was fully paid\n", + GNUNET_h2s (&pc->h_contract_terms)); qs = db->mark_proposal_paid (db->cls, &pc->h_contract_terms, &pc->mi->pubkey); |