summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-11-11 19:27:37 +0100
committerChristian Grothoff <christian@grothoff.org>2019-11-11 19:27:37 +0100
commit94f05e79b7060301aabc293e35611861b6c23915 (patch)
tree4be0b2e734bf7ac91e490208536a7d2ed0f37959
parentf87ca74523df0de9f98d730cedca513d05be684c (diff)
downloadmerchant-94f05e79b7060301aabc293e35611861b6c23915.tar.gz
merchant-94f05e79b7060301aabc293e35611861b6c23915.tar.bz2
merchant-94f05e79b7060301aabc293e35611861b6c23915.zip
log keys
-rw-r--r--src/backend/taler-merchant-httpd_check-payment.c5
-rw-r--r--src/backend/taler-merchant-httpd_pay.c9
-rw-r--r--src/backend/taler-merchant-httpd_poll-payment.c5
3 files changed, 15 insertions, 4 deletions
diff --git a/src/backend/taler-merchant-httpd_check-payment.c b/src/backend/taler-merchant-httpd_check-payment.c
index 1ae03359..85f2d3ea 100644
--- a/src/backend/taler-merchant-httpd_check-payment.c
+++ b/src/backend/taler-merchant-httpd_check-payment.c
@@ -188,11 +188,12 @@ send_pay_request (struct CheckPaymentRequestContext *cprc)
if (0 != remaining.rel_value_us)
{
/* long polling: do not queue a response, suspend connection instead */
- GNUNET_log (GNUNET_ERROR_TYPE_INFO,
- "Suspending /check-payment\n");
TMH_compute_pay_key (cprc->order_id,
&cprc->mi->pubkey,
&cprc->sc.key);
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ "Suspending /check-payment on key %s\n",
+ GNUNET_h2s (&cprc->sc.key));
TMH_long_poll_suspend (&cprc->sc);
return MHD_YES;
}
diff --git a/src/backend/taler-merchant-httpd_pay.c b/src/backend/taler-merchant-httpd_pay.c
index e9c6e69d..e3ecbb6d 100644
--- a/src/backend/taler-merchant-httpd_pay.c
+++ b/src/backend/taler-merchant-httpd_pay.c
@@ -427,6 +427,9 @@ resume_operation (void *cls,
struct TMH_SuspendedConnection *sc = value;
(void) cls;
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "Resuming operation suspended pending payment on key %s\n",
+ GNUNET_h2s (key));
GNUNET_assert (GNUNET_YES ==
GNUNET_CONTAINER_multihashmap_remove (payment_trigger_map,
key,
@@ -455,10 +458,16 @@ resume_suspended_payment_checks (const char *order_id,
TMH_compute_pay_key (order_id,
mpub,
&key);
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "Resuming operations suspended pending payment on key %s\n",
+ GNUNET_h2s (&key));
GNUNET_CONTAINER_multihashmap_get_multiple (payment_trigger_map,
&key,
&resume_operation,
NULL);
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "%u operations remain suspended pending payment\n",
+ GNUNET_CONTAINER_multihashmap_size (payment_trigger_map));
}
diff --git a/src/backend/taler-merchant-httpd_poll-payment.c b/src/backend/taler-merchant-httpd_poll-payment.c
index 165a0b58..91ff4a5b 100644
--- a/src/backend/taler-merchant-httpd_poll-payment.c
+++ b/src/backend/taler-merchant-httpd_poll-payment.c
@@ -188,11 +188,12 @@ send_pay_request (struct PollPaymentRequestContext *pprc)
if (0 != remaining.rel_value_us)
{
/* long polling: do not queue a response, suspend connection instead */
- GNUNET_log (GNUNET_ERROR_TYPE_INFO,
- "Suspending /poll-payment\n");
TMH_compute_pay_key (pprc->order_id,
&pprc->mi->pubkey,
&pprc->sc.key);
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ "Suspending /poll-payment on key %s\n",
+ GNUNET_h2s (&pprc->sc.key));
TMH_long_poll_suspend (&pprc->sc);
return MHD_YES;
}