aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2024-10-06 17:47:53 +0200
committerChristian Grothoff <christian@grothoff.org>2024-10-06 17:47:53 +0200
commit6252e80c251121e7be2c46558f91c4640bffd94d (patch)
treeb91670b9827db7a90e54d34da1bb2f02bb8ad951
parent3e93954656b6a5ffcea633bc32313b0345706304 (diff)
-more logging
-rw-r--r--src/backend/taler-merchant-httpd_private-get-instances-ID-kyc.c15
-rw-r--r--src/backend/taler-merchant-httpd_private-post-orders.c5
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
index 18fc4ceb..f3a28d24 100644
--- 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
index 6ad575bd..fadfcb30 100644
--- 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. */