From 8fc6aab8c74124130c95d58192072a7eba59028c Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 7 Jun 2015 17:55:39 +0000 Subject: -nicer logging --- src/transport/transport_api_address_to_string.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/transport/transport_api_address_to_string.c') diff --git a/src/transport/transport_api_address_to_string.c b/src/transport/transport_api_address_to_string.c index 26073cd2d..801bcac84 100644 --- a/src/transport/transport_api_address_to_string.c +++ b/src/transport/transport_api_address_to_string.c @@ -73,6 +73,8 @@ address_response_processor (void *cls, if (NULL == msg) { + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, + "Disconnected from transport, address resolution failed\n"); alucb->cb (alucb->cb_cls, NULL, GNUNET_SYSERR); @@ -99,6 +101,8 @@ address_response_processor (void *cls, { /* expect more replies; as this is not the last call, we must pass the empty string for the address */ + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, + "Address resolution failed\n"); alucb->cb (alucb->cb_cls, "", GNUNET_NO); @@ -190,11 +194,15 @@ GNUNET_TRANSPORT_address_to_string (const struct GNUNET_CONFIGURATION_Handle *cf } client = GNUNET_CLIENT_connect ("transport", cfg); if (NULL == client) + { + GNUNET_break (0); return NULL; + } GNUNET_log (GNUNET_ERROR_TYPE_INFO, - "Client %p tries to resolve for peer `%s'address len %u \n", + "Client %p tries to resolve for peer `%s' address plugin %s len %u\n", client, GNUNET_i2s (&address->peer), + address->transport_name, address->address_length); msg = GNUNET_malloc (len); -- cgit v1.2.3