diff options
author | Christian Grothoff <christian@grothoff.org> | 2023-11-12 11:42:32 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2023-11-12 11:42:32 +0100 |
commit | aa9964b78216ff7f0d11ae086ff3d3fa62d4a09b (patch) | |
tree | dec5584f8b1416e4c39f5ad17c569da5b5719112 /src/kyclogic | |
parent | caf84957b92b32aa81b7d8687a7bed9fd9c42bc4 (diff) | |
download | exchange-aa9964b78216ff7f0d11ae086ff3d3fa62d4a09b.tar.xz |
-more logging
Diffstat (limited to 'src/kyclogic')
-rw-r--r-- | src/kyclogic/plugin_kyclogic_kycaid.c | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/src/kyclogic/plugin_kyclogic_kycaid.c b/src/kyclogic/plugin_kyclogic_kycaid.c index 058c41e17..882c0a78c 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); |