merchant

Merchant backend to process payments, run by merchants
Log | Files | Refs | Submodules | README | LICENSE

commit 6252e80c251121e7be2c46558f91c4640bffd94d
parent 3e93954656b6a5ffcea633bc32313b0345706304
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sun,  6 Oct 2024 17:47:53 +0200

-more logging

Diffstat:
Msrc/backend/taler-merchant-httpd_private-get-instances-ID-kyc.c | 15+++++++++++++++
Msrc/backend/taler-merchant-httpd_private-post-orders.c | 5+++++
2 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/src/backend/taler-merchant-httpd_private-get-instances-ID-kyc.c b/src/backend/taler-merchant-httpd_private-get-instances-ID-kyc.c @@ -459,9 +459,21 @@ get_exchange_limits ( json_t *limits; if (NULL != ekr->jlimits) + { + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "Returning custom KYC limits\n"); return json_incref (ekr->jlimits); + } if (NULL == keys) + { + GNUNET_log (GNUNET_ERROR_TYPE_WARNING, + "No keys, thus no default KYC limits known\n"); return NULL; + } + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "Returning default KYC limits (%u/%u)\n", + keys->hard_limits_length, + keys->zero_limits_length); limits = json_array (); GNUNET_assert (NULL != limits); for (unsigned int i = 0; i<keys->hard_limits_length; i++) @@ -683,6 +695,9 @@ determine_eligible_accounts ( : '&', TALER_amount2s (&kyc_amount), merchant_pub_str); + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "Found account %s where KYC auth is possible\n", + payto_kycauth); GNUNET_assert (0 == json_array_append_new (ekr->pkaa, json_string (payto_kycauth))); diff --git a/src/backend/taler-merchant-httpd_private-post-orders.c b/src/backend/taler-merchant-httpd_private-post-orders.c @@ -2169,11 +2169,16 @@ set_exchanges (struct OrderContext *oc) if (TALER_amount_is_zero (&oc->parse_order.brutto)) { /* Total amount is zero, so we don't actually need exchanges! */ + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "Order total is zero, no need for exchanges\n"); oc->set_exchanges.exchanges = json_array (); GNUNET_assert (NULL != oc->set_exchanges.exchanges); oc->phase++; return false; } + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "Order total is %s, trying to find exchanges\n", + TALER_amount2s (&oc->parse_order.brutto)); /* Note: re-building 'oc->set_exchanges.exchanges' every time here might be a tad expensive; could likely consider caching the result if it starts to matter. */