summaryrefslogtreecommitdiff
path: root/src/backend/taler-merchant-httpd_private-get-orders-ID.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-11-17 08:39:18 +0100
committerChristian Grothoff <christian@grothoff.org>2021-11-17 08:39:18 +0100
commitcd1270a53dfbd503ce8b5ab8b52d29c84a443339 (patch)
tree07ba11b8a3bf00c9b938c8edc4ca646abbba1fc6 /src/backend/taler-merchant-httpd_private-get-orders-ID.c
parent33d4369dcf89e8868177e38e1a485002ce975005 (diff)
downloadmerchant-cd1270a53dfbd503ce8b5ab8b52d29c84a443339.tar.gz
merchant-cd1270a53dfbd503ce8b5ab8b52d29c84a443339.tar.bz2
merchant-cd1270a53dfbd503ce8b5ab8b52d29c84a443339.zip
-misc fixes wrt long polling
Diffstat (limited to 'src/backend/taler-merchant-httpd_private-get-orders-ID.c')
-rw-r--r--src/backend/taler-merchant-httpd_private-get-orders-ID.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/backend/taler-merchant-httpd_private-get-orders-ID.c b/src/backend/taler-merchant-httpd_private-get-orders-ID.c
index 394fe936..bb576ab9 100644
--- a/src/backend/taler-merchant-httpd_private-get-orders-ID.c
+++ b/src/backend/taler-merchant-httpd_private-get-orders-ID.c
@@ -357,6 +357,9 @@ resume_by_event (void *cls,
(void) extra;
(void) extra_size;
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ "Resuming request %p by trigger\n",
+ gorc);
if (! gorc->suspended)
return; /* duplicate event is possible */
gorc->suspended = false;
@@ -925,6 +928,9 @@ TMH_private_get_orders_ID (const struct TMH_RequestHandler *rh,
GNUNET_CRYPTO_hash (hc->infix,
strlen (hc->infix),
&pay_eh.h_order_id);
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ "Subscribing to payment triggers for %p\n",
+ gorc);
gorc->eh = TMH_db->event_listen (TMH_db->cls,
&pay_eh.header,
timeout,
@@ -939,6 +945,9 @@ TMH_private_get_orders_ID (const struct TMH_RequestHandler *rh,
.merchant_pub = hc->instance->merchant_pub
};
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ "Subscribing to session triggers for %p\n",
+ gorc);
GNUNET_CRYPTO_hash (gorc->session_id,
strlen (gorc->session_id),
&session_eh.h_session_id);