commit ad3d0a899793f22e717a97f5c9b10cb63f702d2d
parent 4c8aef9841ac52c5cb0421fe01ce0b84cb0009c3
Author: Christian Grothoff <christian@grothoff.org>
Date: Tue, 5 Jan 2021 21:30:28 +0100
improve logging
Diffstat:
3 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/exchange/taler-exchange-httpd_keys.c b/src/exchange/taler-exchange-httpd_keys.c
@@ -2412,7 +2412,6 @@ TEH_keys_management_get_handler (const struct TEH_RequestHandler *rh,
ksh = get_key_state (true);
if (NULL == ksh)
{
- GNUNET_break (0);
return TALER_MHD_reply_with_error (connection,
MHD_HTTP_INTERNAL_SERVER_ERROR,
TALER_EC_EXCHANGE_GENERIC_KEYS_MISSING,
diff --git a/src/lib/exchange_api_management_get_keys.c b/src/lib/exchange_api_management_get_keys.c
@@ -298,7 +298,6 @@ handle_get_keys_finished (void *cls,
break;
default:
/* unexpected response code */
- GNUNET_break_op (0);
hr.ec = TALER_JSON_get_error_code (json);
hr.hint = TALER_JSON_get_error_hint (json);
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
diff --git a/src/util/crypto_helper_denom.c b/src/util/crypto_helper_denom.c
@@ -234,6 +234,9 @@ TALER_CRYPTO_helper_denom_connect (
if (GNUNET_OK !=
GNUNET_DISK_directory_create_for_file (template))
{
+ GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_ERROR,
+ "mkdir",
+ template);
GNUNET_free (dh);
GNUNET_free (template);
return NULL;