summaryrefslogtreecommitdiff
path: root/src/testing/testing_api_cmd_wallet_get_order.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-08-25 17:23:35 +0200
committerChristian Grothoff <christian@grothoff.org>2021-08-25 17:23:35 +0200
commit696278ce80c7613e39c24e138dd6c99116080adb (patch)
tree31e85cf7bb872d79ac6f2c4d50dc7831a20d7692 /src/testing/testing_api_cmd_wallet_get_order.c
parent5672080efcaca68ed2d301adf1673d45f7638a16 (diff)
downloadmerchant-696278ce80c7613e39c24e138dd6c99116080adb.tar.gz
merchant-696278ce80c7613e39c24e138dd6c99116080adb.tar.bz2
merchant-696278ce80c7613e39c24e138dd6c99116080adb.zip
complete implementation of #6956: long polling triggers via database backend
Diffstat (limited to 'src/testing/testing_api_cmd_wallet_get_order.c')
-rw-r--r--src/testing/testing_api_cmd_wallet_get_order.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/testing/testing_api_cmd_wallet_get_order.c b/src/testing/testing_api_cmd_wallet_get_order.c
index d0a50a0c..a58dda80 100644
--- a/src/testing/testing_api_cmd_wallet_get_order.c
+++ b/src/testing/testing_api_cmd_wallet_get_order.c
@@ -600,6 +600,9 @@ wallet_poll_order_cb (
struct WalletPollOrderStartState *pos = cls;
pos->ogh = NULL;
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ "GET /orders/$ID finished with status %u.\n",
+ hr->http_status);
pos->http_status = hr->http_status;
switch (hr->http_status)
{
@@ -791,6 +794,12 @@ wallet_poll_order_conclude_run (void *cls,
GNUNET_assert (poll_cmd->run == &wallet_poll_order_start_run);
pos = poll_cmd->cls;
pos->cs = poc;
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ "Waiting on GET /orders/$ID of %s (%s)\n",
+ poc->start_reference,
+ (NULL == pos->ogh)
+ ? "finished"
+ : "active");
if (NULL == pos->ogh)
poc->task = GNUNET_SCHEDULER_add_now (&conclude_task,
poc);