improve logging

This commit is contained in:
Christian Grothoff 2021-01-05 21:30:28 +01:00
parent 4c8aef9841
commit ad3d0a8997
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC
3 changed files with 3 additions and 2 deletions

View File

@ -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,

View File

@ -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,

View File

@ -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;