summaryrefslogtreecommitdiff
path: root/src/transport/transport_api_address_to_string.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-06-07 17:55:39 +0000
committerChristian Grothoff <christian@grothoff.org>2015-06-07 17:55:39 +0000
commit8fc6aab8c74124130c95d58192072a7eba59028c (patch)
treec0c0fa21d0c0cfe441c20cbc60ccdaaa0b3853da /src/transport/transport_api_address_to_string.c
parent9c9d95dc931d6fb083b229c45bbe49eef6e60791 (diff)
-nicer logging
Diffstat (limited to 'src/transport/transport_api_address_to_string.c')
-rw-r--r--src/transport/transport_api_address_to_string.c10
1 files changed, 9 insertions, 1 deletions
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);