From: Christian Grothoff Date: Wed, 27 Dec 2017 13:06:38 +0000 (+0100) Subject: more logging for transport X-Git-Tag: gnunet-0.11.0rc0~82 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=04c9c333aad427d21ab34d96dd3963c9e385cf41;p=oweals%2Fgnunet.git more logging for transport --- diff --git a/src/transport/gnunet-service-transport.c b/src/transport/gnunet-service-transport.c index 6b354df98..124260c41 100644 --- a/src/transport/gnunet-service-transport.c +++ b/src/transport/gnunet-service-transport.c @@ -688,6 +688,8 @@ handle_client_hello (void *cls, { struct TransportClient *tc = cls; + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "Received HELLO message\n"); GST_validation_handle_hello (message); GNUNET_SERVICE_client_continue (tc->client); } @@ -2802,7 +2804,7 @@ run (void *cls, GNUNET_assert (NULL != GST_my_private_key); GNUNET_log(GNUNET_ERROR_TYPE_INFO, - "My identity is `%4s'\n", + "My identity is `%s'\n", GNUNET_i2s_full (&GST_my_identity)); GNUNET_SCHEDULER_add_shutdown (&shutdown_task, diff --git a/src/transport/gnunet-service-transport_validation.c b/src/transport/gnunet-service-transport_validation.c index 27c3c7041..cd5aeb5e2 100644 --- a/src/transport/gnunet-service-transport_validation.c +++ b/src/transport/gnunet-service-transport_validation.c @@ -1347,6 +1347,9 @@ GST_validation_handle_address (const struct GNUNET_HELLO_Address *address) if (NULL == papi) { /* This plugin is currently unvailable ... ignore */ + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "No plugin available for %s\n", + address->transport_name); return; } ve = find_validation_entry (address); @@ -1358,6 +1361,13 @@ GST_validation_handle_address (const struct GNUNET_HELLO_Address *address) GNUNET_i2s (&ve->address->peer)); ve->revalidation_task = GNUNET_SCHEDULER_add_now (&revalidate_address, ve); } + else + { + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "Validation already running for address `%s' of %s\n", + GST_plugins_a2s (ve->address), + GNUNET_i2s (&ve->address->peer)); + } } @@ -1657,6 +1667,9 @@ GST_validation_handle_hello (const struct GNUNET_MessageHeader *hello) sizeof (struct GNUNET_PeerIdentity))) { /* got our own HELLO, how boring */ + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, + "Validation received our own HELLO (%s), ignoring\n", + GNUNET_i2s (&pid)); return GNUNET_OK; } GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,