diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-05-12 22:40:43 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-05-12 22:40:52 +0200 |
commit | 005d7902200f1eabf1d413fd0ff805ffe56e1ca7 (patch) | |
tree | 59d2f751a22bba30a698708bb50368444dc4872d | |
parent | b50bb3ad2bc31fceccaa686fa91ceace278c1897 (diff) |
nicer logging
-rw-r--r-- | src/backend/taler-merchant-httpd.c | 3 | ||||
-rw-r--r-- | src/lib/merchant_api_pay.c | 6 |
2 files changed, 8 insertions, 1 deletions
diff --git a/src/backend/taler-merchant-httpd.c b/src/backend/taler-merchant-httpd.c index c32fe067..1abee1e9 100644 --- a/src/backend/taler-merchant-httpd.c +++ b/src/backend/taler-merchant-httpd.c @@ -1109,7 +1109,8 @@ run (void *cls, MHD_OPTION_END); if (NULL == mhd) { - GNUNET_break (0); + GNUNET_log (GNUNET_ERROR_TYPE_ERROR, + "Failed to launch HTTP service, exiting.\n"); GNUNET_SCHEDULER_shutdown (); return; } diff --git a/src/lib/merchant_api_pay.c b/src/lib/merchant_api_pay.c index 632a8ac2..47a7b8fb 100644 --- a/src/lib/merchant_api_pay.c +++ b/src/lib/merchant_api_pay.c @@ -335,6 +335,12 @@ TALER_MERCHANT_pay_wallet (struct GNUNET_CURL_Context *ctx, } TALER_amount_hton (&dr.deposit_fee, &fee); + { + TALER_LOG_DEBUG ("... amount_with_fee was %s\n", + TALER_amount2s (&coin->amount_with_fee)); + TALER_LOG_DEBUG ("... fee was %s\n", + TALER_amount2s (&fee)); + } GNUNET_CRYPTO_eddsa_sign (&coin->coin_priv.eddsa_priv, &dr.purpose, |