From 90c4c6dad6f1e7bac3d44b5b6cd012bbfdf057a8 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 2 Oct 2024 22:41:10 +0200 Subject: more logging to diagnose #9245 --- src/backend/taler-merchant-httpd_private-get-instances-ID-kyc.c | 8 ++++++++ src/backend/taler-merchant-kyccheck.c | 5 +++-- 2 files changed, 11 insertions(+), 2 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 8d7f437c..18fc4ceb 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 @@ -772,6 +772,14 @@ kyc_status_cb ( struct KycContext *kc = cls; struct ExchangeKycRequest *ekr; + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "KYC status for `%s' at `%s' is %u/%s/%s/%s\n", + payto_uri, + exchange_url, + last_http_status, + kyc_ok ? "KYC OK" : "KYC NEEDED", + in_aml_review ? "IN AML REVIEW" : "NO AML REVIEW", + NULL == jlimits ? "DEFAULT LIMITS" : "CUSTOM LIMITS"); switch (kc->lpt) { case TALER_EXCHANGE_KLPT_NONE: diff --git a/src/backend/taler-merchant-kyccheck.c b/src/backend/taler-merchant-kyccheck.c index 036f33e9..ae142511 100644 --- a/src/backend/taler-merchant-kyccheck.c +++ b/src/backend/taler-merchant-kyccheck.c @@ -606,10 +606,11 @@ exchange_check_cb ( return; } GNUNET_log (GNUNET_ERROR_TYPE_INFO, - "account_set_kyc_status (%s, %u, %d) returned %d\n", + "account_set_kyc_status (%s, %u, %s, %s) returned %d\n", i->e->keys->exchange_url, i->last_http_status, - i->auth_ok, + i->auth_ok ? "auth OK" : "auth needed", + NULL == i->jlimits ? "default limits" : "custom limits", (int) qs); i->not_first_time = true; } -- cgit v1.2.3