[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] branch master updated: -more logging
From: |
gnunet |
Subject: |
[taler-exchange] branch master updated: -more logging |
Date: |
Sun, 12 Nov 2023 14:43:40 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository exchange.
The following commit(s) were added to refs/heads/master by this push:
new 92ac6279 -more logging
92ac6279 is described below
commit 92ac627969e9e32e92d405def64166a446fb4c8d
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sun Nov 12 14:43:38 2023 +0100
-more logging
---
src/exchange/taler-exchange-httpd_kyc-webhook.c | 5 +++++
src/exchangedb/pg_kyc_provider_account_lookup.c | 2 +-
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 415e5de9..7f232cae 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 f3bd84c1..cca3ab54 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 882c0a78..b1b9f0a4 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);
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.