summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-08-31 13:45:19 +0200
committerFlorian Dold <florian.dold@gmail.com>2019-08-31 13:45:19 +0200
commitdc0907d254a901491e50bb955d8ed10c8c9655b7 (patch)
tree07358c2443450e875d15470472d553af01cfaedd
parent09b3d97746973387ff5594285e77dd5bf5235eb4 (diff)
downloadmerchant-dc0907d254a901491e50bb955d8ed10c8c9655b7.tar.gz
merchant-dc0907d254a901491e50bb955d8ed10c8c9655b7.tar.bz2
merchant-dc0907d254a901491e50bb955d8ed10c8c9655b7.zip
log refunded amount
-rw-r--r--src/backend/taler-merchant-httpd_pay.c12
1 files 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 !=