From 786705c19d01f2d27b0b6dacd5718ab53d261325 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Fri, 25 Dec 2015 18:52:22 +0100 Subject: Add lots of logging. --- src/mint-lib/mint_api_deposit.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/mint-lib/mint_api_deposit.c b/src/mint-lib/mint_api_deposit.c index 4b49e46a3..8f7b6db06 100644 --- a/src/mint-lib/mint_api_deposit.c +++ b/src/mint-lib/mint_api_deposit.c @@ -319,6 +319,16 @@ verify_signatures (const struct TALER_MINT_DenomPublicKey *dki, &coin_pub->eddsa_pub)) { TALER_LOG_WARNING ("Invalid coin signature on /deposit request\n"); + { + char *s; + s = TALER_amount_to_string (amount); + TALER_LOG_DEBUG ("... amount_with_fee was %s\n", s); + GNUNET_free (s); + s = TALER_amount_to_string (&dki->fee_deposit); + TALER_LOG_DEBUG ("... deposit_fee was %s\n", s); + GNUNET_free (s); + } + return GNUNET_SYSERR; } @@ -498,7 +508,7 @@ TALER_MINT_deposit (struct TALER_MINT_Handle *mint, JSON_COMPACT))); json_decref (deposit_obj); GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, - "URL for deposit: `%s'", + "URL for deposit: `%s'\n", dh->url); GNUNET_assert (CURLE_OK == curl_easy_setopt (eh, -- cgit v1.2.3