diff options
author | Christian Grothoff <christian@grothoff.org> | 2023-11-12 14:43:38 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2023-11-12 14:43:38 +0100 |
commit | 92ac627969e9e32e92d405def64166a446fb4c8d (patch) | |
tree | f1e66d64098eec12d871f181fb2f5e2cff61050e | |
parent | d7c753722447211a6ca774f5c754a0817e1e6de2 (diff) |
-more logging
-rw-r--r-- | src/exchange/taler-exchange-httpd_kyc-webhook.c | 5 | ||||
-rw-r--r-- | src/exchangedb/pg_kyc_provider_account_lookup.c | 2 | ||||
-rw-r--r-- | src/kyclogic/plugin_kyclogic_kycaid.c | 11 |
3 files changed, 14 insertions, 4 deletions
diff --git a/src/exchange/taler-exchange-httpd_kyc-webhook.c b/src/exchange/taler-exchange-httpd_kyc-webhook.c index 415e5de9a..7f232cae3 100644 --- a/src/exchange/taler-exchange-httpd_kyc-webhook.c +++ b/src/exchange/taler-exchange-httpd_kyc-webhook.c @@ -314,6 +314,11 @@ handler_kyc_webhook_generic ( TALER_EC_EXCHANGE_KYC_GENERIC_LOGIC_UNKNOWN, args[0]); } + GNUNET_log (GNUNET_ERROR_TYPE_ERROR, + "KYC logic `%s' mapped to section %s/%s\n", + args[0], + kwh->pd->section, + kwh->provider_section); kwh->wh = kwh->plugin->webhook (kwh->plugin->cls, kwh->pd, TEH_plugin->kyc_provider_account_lookup, diff --git a/src/exchangedb/pg_kyc_provider_account_lookup.c b/src/exchangedb/pg_kyc_provider_account_lookup.c index f3bd84c1a..cca3ab547 100644 --- a/src/exchangedb/pg_kyc_provider_account_lookup.c +++ b/src/exchangedb/pg_kyc_provider_account_lookup.c @@ -47,7 +47,7 @@ TEH_PG_kyc_provider_account_lookup ( process_row), GNUNET_PQ_result_spec_end }; - /* Used in #postgres_kyc_provider_account_lookup() */ + PREPARE (pg, "get_wire_target_by_legitimization_id", "SELECT " diff --git a/src/kyclogic/plugin_kyclogic_kycaid.c b/src/kyclogic/plugin_kyclogic_kycaid.c index 882c0a78c..b1b9f0a49 100644 --- a/src/kyclogic/plugin_kyclogic_kycaid.c +++ b/src/kyclogic/plugin_kyclogic_kycaid.c @@ -1190,6 +1190,7 @@ kycaid_webhook (void *cls, const char *type; const char *verification_id; const char *applicant_id; + const char *form_id; const char *status = NULL; bool verified = false; bool no_verified = true; @@ -1203,6 +1204,8 @@ kycaid_webhook (void *cls, &verification_id), GNUNET_JSON_spec_string ("applicant_id", &applicant_id), + GNUNET_JSON_spec_string ("form_id", + &form_id), GNUNET_JSON_spec_mark_optional ( GNUNET_JSON_spec_string ("status", &status), @@ -1226,7 +1229,8 @@ kycaid_webhook (void *cls, wh->pd = pd; wh->connection = connection; GNUNET_log (GNUNET_ERROR_TYPE_INFO, - "KYCAID webhook triggered with %s\n", + "KYCAID webhook of `%s' triggered with %s\n", + pd->section, http_method); #if 1 if (NULL != body) @@ -1283,8 +1287,9 @@ kycaid_webhook (void *cls, if (GNUNET_DB_STATUS_SUCCESS_NO_RESULTS == qs) { GNUNET_log (GNUNET_ERROR_TYPE_WARNING, - "Received webhook for unknown verification ID `%s'\n", - verification_id); + "Received webhook for unknown verification ID `%s' and section %s\n", + verification_id, + pd->section); wh->resp = TALER_MHD_make_error ( TALER_EC_EXCHANGE_KYC_PROOF_REQUEST_UNKNOWN, verification_id); |