gnunet-svn
[Top][All Lists]
Advanced

[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 12:42:35 +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 aa9964b7 -more logging
aa9964b7 is described below

commit aa9964b78216ff7f0d11ae086ff3d3fa62d4a09b
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sun Nov 12 11:42:32 2023 +0100

    -more logging
---
 src/exchange/taler-exchange-httpd_kyc-check.c |  3 ++-
 src/kyclogic/plugin_kyclogic_kycaid.c         | 26 +++++++++++++++++++++++++-
 2 files changed, 27 insertions(+), 2 deletions(-)

diff --git a/src/exchange/taler-exchange-httpd_kyc-check.c 
b/src/exchange/taler-exchange-httpd_kyc-check.c
index 1e956138..be62f6d8 100644
--- a/src/exchange/taler-exchange-httpd_kyc-check.c
+++ b/src/exchange/taler-exchange-httpd_kyc-check.c
@@ -238,7 +238,8 @@ initiate_cb (
   kyp->ih = NULL;
   kyp->ih_done = true;
   GNUNET_log (GNUNET_ERROR_TYPE_INFO,
-              "KYC initiation completed with ec=%d (%s)\n",
+              "KYC initiation `%s' completed with ec=%d (%s)\n",
+              provider_legitimization_id,
               ec,
               (TALER_EC_NONE == ec)
               ? redirect_url
diff --git a/src/kyclogic/plugin_kyclogic_kycaid.c 
b/src/kyclogic/plugin_kyclogic_kycaid.c
index 058c41e1..882c0a78 100644
--- a/src/kyclogic/plugin_kyclogic_kycaid.c
+++ b/src/kyclogic/plugin_kyclogic_kycaid.c
@@ -429,11 +429,14 @@ handle_initiate_finished (void *cls,
     {
       const char *verification_id;
       const char *form_url;
+      const char *form_id;
       struct GNUNET_JSON_Specification spec[] = {
         GNUNET_JSON_spec_string ("verification_id",
                                  &verification_id),
         GNUNET_JSON_spec_string ("form_url",
                                  &form_url),
+        GNUNET_JSON_spec_string ("form_id",
+                                 &form_id),
         GNUNET_JSON_spec_end ()
       };
 
@@ -455,6 +458,10 @@ handle_initiate_finished (void *cls,
                                                     "type")));
         break;
       }
+      GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+                  "Started new verification `%s' using form %s\n",
+                  verification_id,
+                  form_id);
       ih->cb (ih->cb_cls,
               TALER_EC_NONE,
               form_url,
@@ -905,6 +912,15 @@ handle_webhook_finished (void *cls,
   struct MHD_Response *resp;
 
   wh->job = NULL;
+  GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+              "Webhook returned with HTTP status %u\n",
+              (unsigned int) response_code);
+#if 1
+  if (NULL != j)
+    json_dumpf (j,
+                stderr,
+                JSON_INDENT (2));
+#endif
   wh->kycaid_response_code = response_code;
   wh->json_response = json_incref ((json_t *) j);
   switch (response_code)
@@ -1209,7 +1225,15 @@ kycaid_webhook (void *cls,
   wh->ps = ps;
   wh->pd = pd;
   wh->connection = connection;
-
+  GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+              "KYCAID webhook triggered with %s\n",
+              http_method);
+#if 1
+  if (NULL != body)
+    json_dumpf (body,
+                stderr,
+                JSON_INDENT (2));
+#endif
   if (NULL == pd)
   {
     GNUNET_break_op (0);

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]