From dc0907d254a901491e50bb955d8ed10c8c9655b7 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Sat, 31 Aug 2019 13:45:19 +0200 Subject: log refunded amount --- src/backend/taler-merchant-httpd_pay.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/backend/taler-merchant-httpd_pay.c b/src/backend/taler-merchant-httpd_pay.c index 7ebc579e..a367af60 100644 --- a/src/backend/taler-merchant-httpd_pay.c +++ b/src/backend/taler-merchant-httpd_pay.c @@ -680,9 +680,11 @@ check_payment_sufficient (struct PayContext *pc) } GNUNET_log (GNUNET_ERROR_TYPE_INFO, - "Amount got by wallet: %s" - "\nDeposit fee for all coins: %s\n", - TALER_amount_to_string (&acc_amount), + "Amount received from wallet: %s\n" + TALER_amount_to_string (&acc_amount)); + + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "Deposit fee for all coins: %s\n", TALER_amount_to_string (&acc_fee)); GNUNET_log (GNUNET_ERROR_TYPE_INFO, @@ -694,6 +696,10 @@ check_payment_sufficient (struct PayContext *pc) "Deposit fee limit for merchant: %s\n", TALER_amount_to_string (&pc->max_fee)); + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "Total refunded amount: %s\n", + TALER_amount_to_string (&pc->total_refunded)); + /* Now compare exchange wire fee compared to * what we are willing to pay */ if (GNUNET_YES != -- cgit v1.2.3