aboutsummaryrefslogtreecommitdiff
path: root/src/kyclogic
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-11-12 14:43:38 +0100
committerChristian Grothoff <christian@grothoff.org>2023-11-12 14:43:38 +0100
commit92ac627969e9e32e92d405def64166a446fb4c8d (patch)
treef1e66d64098eec12d871f181fb2f5e2cff61050e /src/kyclogic
parentd7c753722447211a6ca774f5c754a0817e1e6de2 (diff)
-more logging
Diffstat (limited to 'src/kyclogic')
-rw-r--r--src/kyclogic/plugin_kyclogic_kycaid.c11
1 files changed, 8 insertions, 3 deletions
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);