nicer logging

This commit is contained in:
Christian Grothoff 2017-05-12 22:41:29 +02:00
parent 4f6e71a842
commit 5dff30e20b
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -318,8 +318,8 @@ verify_signatures (const struct TALER_EXCHANGE_DenomPublicKey *dki,
&coin_sig->eddsa_signature, &coin_sig->eddsa_signature,
&coin_pub->eddsa_pub)) &coin_pub->eddsa_pub))
{ {
GNUNET_break (0); GNUNET_break_op (0);
TALER_LOG_WARNING ("Invalid coin signature on /deposit request\n"); TALER_LOG_WARNING ("Invalid coin signature on /deposit request!\n");
{ {
TALER_LOG_DEBUG ("... amount_with_fee was %s\n", TALER_LOG_DEBUG ("... amount_with_fee was %s\n",
TALER_amount2s (amount)); TALER_amount2s (amount));
@ -337,14 +337,14 @@ verify_signatures (const struct TALER_EXCHANGE_DenomPublicKey *dki,
if (GNUNET_YES != if (GNUNET_YES !=
TALER_test_coin_valid (&coin_info)) TALER_test_coin_valid (&coin_info))
{ {
GNUNET_break (0); GNUNET_break_op (0);
TALER_LOG_WARNING ("Invalid coin passed for /deposit\n"); TALER_LOG_WARNING ("Invalid coin passed for /deposit\n");
return GNUNET_SYSERR; return GNUNET_SYSERR;
} }
if (0 < TALER_amount_cmp (&dki->fee_deposit, if (0 < TALER_amount_cmp (&dki->fee_deposit,
amount)) amount))
{ {
GNUNET_break (0); GNUNET_break_op (0);
TALER_LOG_WARNING ("Deposit amount smaller than fee\n"); TALER_LOG_WARNING ("Deposit amount smaller than fee\n");
return GNUNET_SYSERR; return GNUNET_SYSERR;
} }