summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-11-11 19:41:27 +0100
committerChristian Grothoff <christian@grothoff.org>2019-11-11 19:41:27 +0100
commitaf14d8eccd300e7ae969079394f4e6ab46decfc5 (patch)
tree3eb2a2cb2f2ec35503ea54a1dada6baadf5aeb9e
parent94f05e79b7060301aabc293e35611861b6c23915 (diff)
downloadmerchant-af14d8eccd300e7ae969079394f4e6ab46decfc5.tar.gz
merchant-af14d8eccd300e7ae969079394f4e6ab46decfc5.tar.bz2
merchant-af14d8eccd300e7ae969079394f4e6ab46decfc5.zip
more logging
-rw-r--r--src/backend/taler-merchant-httpd_check-payment.c14
-rw-r--r--src/backend/taler-merchant-httpd_pay.c3
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);