diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-04-11 00:34:29 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-04-11 00:34:29 +0200 |
commit | ae3d1db454a46b817935525823caf05bd5c96590 (patch) | |
tree | 1866afbc6f810daeff4d45dbeb2db30de5372f4c /src/backend | |
parent | 2e2d1c865135a3bdcdf7b142588e092e1228200e (diff) | |
download | merchant-ae3d1db454a46b817935525823caf05bd5c96590.tar.gz merchant-ae3d1db454a46b817935525823caf05bd5c96590.tar.bz2 merchant-ae3d1db454a46b817935525823caf05bd5c96590.zip |
more refund-related logging
Diffstat (limited to 'src/backend')
-rw-r--r-- | src/backend/taler-merchant-httpd_private-post-orders.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/backend/taler-merchant-httpd_private-post-orders.c b/src/backend/taler-merchant-httpd_private-post-orders.c index fabbacf8..a06b6ac6 100644 --- a/src/backend/taler-merchant-httpd_private-post-orders.c +++ b/src/backend/taler-merchant-httpd_private-post-orders.c @@ -813,7 +813,11 @@ patch_order (struct MHD_Connection *connection, (void) GNUNET_TIME_round_abs (&rd); if (0 == refund_delay.rel_value_us) + { + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "Refund delay is zero, no refunds are possible for this order\n"); rd = now; /* if delay was 0, ensure that refund_deadline == timestamp */ + } GNUNET_assert (0 == json_object_set_new (order, "refund_deadline", @@ -1084,7 +1088,6 @@ merge_inventory (struct MHD_Connection *connection, if (NULL == json_object_get (order, "products")) { - json_dumpf (order, stderr, JSON_INDENT (2)); GNUNET_assert (NULL != order); GNUNET_assert (0 == json_object_set_new (order, @@ -1240,6 +1243,9 @@ TMH_private_post_orders (const struct TMH_RequestHandler *rh, return (GNUNET_NO == ret) ? MHD_YES : MHD_NO; + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "Refund delay is %llu\n", + (unsigned long long) refund_delay.rel_value_us); /* parse and handle the create_token (optionally given) */ if (NULL != json_object_get (hc->request_body, |