more logging

This commit is contained in:
Christian Grothoff 2021-01-28 21:46:21 +01:00
parent bfd0a96254
commit 4dd87e1118
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -355,6 +355,9 @@ sign_worker (void *cls)
wi); wi);
work_counter--; work_counter--;
GNUNET_assert (0 == pthread_mutex_unlock (&work_lock)); GNUNET_assert (0 == pthread_mutex_unlock (&work_lock));
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"Processing sign request %p\n",
wi);
{ {
if (GNUNET_OK != if (GNUNET_OK !=
GNUNET_CRYPTO_eddsa_sign_ (&wi->key->exchange_priv.eddsa_priv, GNUNET_CRYPTO_eddsa_sign_ (&wi->key->exchange_priv.eddsa_priv,
@ -525,7 +528,8 @@ handle_done (void *cls)
}; };
GNUNET_log (GNUNET_ERROR_TYPE_WARNING, GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
"Signing request failed, worker failed to produce signature\n"); "Signing request %p failed, worker failed to produce signature\n",
wi);
(void) transmit (&wi->addr, (void) transmit (&wi->addr,
wi->addr_size, wi->addr_size,
&sf.header); &sf.header);
@ -539,6 +543,9 @@ handle_done (void *cls)
.exchange_sig = wi->signature .exchange_sig = wi->signature
}; };
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"Transmitting signature for request %p\n",
wi);
(void) transmit (&wi->addr, (void) transmit (&wi->addr,
wi->addr_size, wi->addr_size,
&sr.header); &sr.header);
@ -593,9 +600,6 @@ handle_sign_request (const struct sockaddr_un *addr,
&sf.header); &sf.header);
return; return;
} }
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"Received request to sign over %u bytes\n",
(unsigned int) purpose_size);
{ {
struct GNUNET_TIME_Absolute now; struct GNUNET_TIME_Absolute now;
@ -624,6 +628,10 @@ handle_sign_request (const struct sockaddr_un *addr,
keys_head->rc++; keys_head->rc++;
wi->purpose = GNUNET_memdup (purpose, wi->purpose = GNUNET_memdup (purpose,
purpose_size); purpose_size);
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"Received request to sign over %u bytes, queueing as %p\n",
(unsigned int) purpose_size,
wi);
GNUNET_assert (0 == pthread_mutex_lock (&work_lock)); GNUNET_assert (0 == pthread_mutex_lock (&work_lock));
work_counter++; work_counter++;
GNUNET_CONTAINER_DLL_insert (work_head, GNUNET_CONTAINER_DLL_insert (work_head,