commit 5379d577ff6f674fcfb080425bf5a8a42dd2b1c0
parent af14d8eccd300e7ae969079394f4e6ab46decfc5
Author: Christian Grothoff <christian@grothoff.org>
Date: Mon, 11 Nov 2019 19:54:00 +0100
more logging
Diffstat:
2 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/src/backend/taler-merchant-httpd_check-payment.c b/src/backend/taler-merchant-httpd_check-payment.c
@@ -461,6 +461,10 @@ MH_handler_check_payment (struct TMH_RequestHandler *rh,
if (GNUNET_OK !=
parse_contract_terms (cprc))
return cprc->ret;
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ "Order `%s' matches contract %s\n",
+ cprc->order_id,
+ GNUNET_h2s (&cprc->h_contract_terms));
}
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"Checking payment status for order `%s'\n",
diff --git a/src/backend/taler-merchant-httpd_pay.c b/src/backend/taler-merchant-httpd_pay.c
@@ -980,6 +980,7 @@ generate_error_response (struct PayContext *pc,
static void
find_next_exchange (struct PayContext *pc);
+
/**
* Begin of the DB transaction. If required (from
* soft/serialization errors), the transaction can be
@@ -1524,6 +1525,10 @@ parse_pay (struct MHD_Connection *connection,
}
return GNUNET_NO;
}
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ "Handling /pay for order `%s' with contract hash `%s'\n",
+ order_id,
+ GNUNET_h2s (&pc->h_contract_terms));
merchant = json_object_get (pc->contract_terms,
"merchant");