exchange

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

commit 550a9adee3a7307b7a0d8bffa5f5b15fec9452b6
parent 19c0c00419fd7d771bff6e775b448e4a0005615d
Author: Christian Grothoff <christian@grothoff.org>
Date:   Wed, 11 Dec 2024 21:43:26 +0100

fix #9382

Diffstat:
Msrc/exchange/taler-exchange-httpd_common_kyc.c | 6+++++-
Msrc/exchangedb/pg_insert_aml_program_failure.c | 4++--
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 @@ -1043,7 +1043,11 @@ legi_check_aml_trigger_cb ( lch->kat = NULL; if (TALER_EC_NONE != ec) { - GNUNET_break (0); + GNUNET_log (GNUNET_ERROR_TYPE_WARNING, + "AML program failed: %s (%s, %d)\n", + TALER_ErrorCode_get_hint (ec), + detail, + (int) ec); lch->lcr.http_status = MHD_HTTP_INTERNAL_SERVER_ERROR; lch->lcr.response = TALER_MHD_make_error ( ec, diff --git a/src/exchangedb/pg_insert_aml_program_failure.c b/src/exchangedb/pg_insert_aml_program_failure.c @@ -49,8 +49,8 @@ TEH_PG_insert_aml_program_failure ( struct GNUNET_PQ_QueryParam params[] = { GNUNET_PQ_query_param_uint64 (&process_row), GNUNET_PQ_query_param_auto_from_type (h_payto), - GNUNET_PQ_query_param_uint32 (&ec32), GNUNET_PQ_query_param_timestamp (&now), + GNUNET_PQ_query_param_uint32 (&ec32), GNUNET_PQ_query_param_string (error_message), GNUNET_PQ_query_param_string (kyc_completed_notify_s), GNUNET_PQ_query_param_end @@ -61,7 +61,7 @@ TEH_PG_insert_aml_program_failure ( "insert_aml_program_failure", "SELECT out_update" " FROM exchange_do_insert_aml_program_failure" - " ($1, $2, $3, $4);"); + " ($1, $2, $3, $4, $5, $6);"); qs = GNUNET_PQ_eval_prepared_non_select (pg->conn, "insert_aml_program_failure", params);