exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit 8e1ef6a5b1927f5438d05b7333a1e14eb04003ce
parent f01cdeacd8906c5b5673d50a357854d748c135ec
Author: Christian Grothoff <christian@grothoff.org>
Date:   Fri, 13 Dec 2024 13:09:25 +0100

improve logging

Diffstat:
Msrc/exchange/taler-exchange-httpd_common_kyc.c | 9+++++++--
Msrc/exchangedb/pg_insert_kyc_measure_result.c | 1-
2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/src/exchange/taler-exchange-httpd_common_kyc.c b/src/exchange/taler-exchange-httpd_common_kyc.c @@ -985,7 +985,10 @@ legi_fail (struct TEH_LegitimizationCheckHandle *lch, enum TALER_ErrorCode ec, const char *details) { - GNUNET_break (0); + GNUNET_log (GNUNET_ERROR_TYPE_ERROR, + "Legitimziation process failed: %s (%s)\n", + TALER_ErrorCode_get_hint (ec), + details); lch->lcr.http_status = TALER_ErrorCode_get_http_status (ec); lch->lcr.response @@ -1046,7 +1049,9 @@ legi_check_aml_trigger_cb ( if (lch->rerun > MAX_LEGI_LOOPS) { /* deep recursion not allowed, abort! */ - GNUNET_break (0); + GNUNET_log (GNUNET_ERROR_TYPE_ERROR, + "Deep recursion (> %u) detected in AML programs, aborting\n", + (unsigned int) MAX_LEGI_LOOPS); legi_fail (lch, TALER_EC_EXCHANGE_KYC_RECURSIVE_RULE_DETECTED, NULL); diff --git a/src/exchangedb/pg_insert_kyc_measure_result.c b/src/exchangedb/pg_insert_kyc_measure_result.c @@ -79,7 +79,6 @@ TEH_PG_insert_kyc_measure_result ( GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Inserting KYC attributes, wake up on %s\n", kyc_completed_notify_s); - GNUNET_break (NULL != new_rules); GNUNET_break (NULL != h_payto); PREPARE (pg, "insert_kyc_measure_result",