commit 12373dec23666974eb15698922d1099976277e39
parent 0160ac24bce1eae4239045a430d8df00ab25ffd9
Author: Christian Grothoff <christian@grothoff.org>
Date: Sat, 13 Jan 2024 21:41:41 +0100
more logging
Diffstat:
1 file changed, 10 insertions(+), 0 deletions(-)
diff --git a/src/backend/taler-merchant-httpd_private-post-orders.c b/src/backend/taler-merchant-httpd_private-post-orders.c
@@ -977,6 +977,9 @@ check_contract (struct OrderContext *oc)
"order contained unallowed values");
return;
case GNUNET_OK:
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ "Contract hash is %s\n",
+ GNUNET_h2s (&h_control.hash));
oc->phase++;
return;
}
@@ -1290,6 +1293,13 @@ serialize_order (struct OrderContext *oc)
"refund_deadline",
GNUNET_JSON_from_timestamp (
oc->parse_order.refund_deadline)));
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ "Refund deadline for contact is %llu\n",
+ (unsigned long long) refund_deadline.abs_time.abs_value_us);
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ "Wallet timestamp for contact is %llu\n",
+ (unsigned long
+ long) oc->parse_order.timestamp.abs_time.abs_value_us);
/* Pack does not work here, because it sets zero-values for relative times */
/* auto_refund should only be set if it is not 0 */