From ad3d0a899793f22e717a97f5c9b10cb63f702d2d Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 5 Jan 2021 21:30:28 +0100 Subject: [PATCH] improve logging --- src/exchange/taler-exchange-httpd_keys.c | 1 - src/lib/exchange_api_management_get_keys.c | 1 - src/util/crypto_helper_denom.c | 3 +++ 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 index b048f1d32..cad1c7c23 100644 --- 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 index 050dae952..925ca804d 100644 --- 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 index 266534ba9..ce5cff673 100644 --- 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;