diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-06-07 17:55:39 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-06-07 17:55:39 +0000 |
commit | 8fc6aab8c74124130c95d58192072a7eba59028c (patch) | |
tree | c0c0fa21d0c0cfe441c20cbc60ccdaaa0b3853da /src/transport/transport_api_address_to_string.c | |
parent | 9c9d95dc931d6fb083b229c45bbe49eef6e60791 (diff) | |
download | gnunet-8fc6aab8c74124130c95d58192072a7eba59028c.tar.gz gnunet-8fc6aab8c74124130c95d58192072a7eba59028c.zip |
-nicer logging
Diffstat (limited to 'src/transport/transport_api_address_to_string.c')
-rw-r--r-- | src/transport/transport_api_address_to_string.c | 10 |
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, | |||
73 | 73 | ||
74 | if (NULL == msg) | 74 | if (NULL == msg) |
75 | { | 75 | { |
76 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | ||
77 | "Disconnected from transport, address resolution failed\n"); | ||
76 | alucb->cb (alucb->cb_cls, | 78 | alucb->cb (alucb->cb_cls, |
77 | NULL, | 79 | NULL, |
78 | GNUNET_SYSERR); | 80 | GNUNET_SYSERR); |
@@ -99,6 +101,8 @@ address_response_processor (void *cls, | |||
99 | { | 101 | { |
100 | /* expect more replies; as this is not the last | 102 | /* expect more replies; as this is not the last |
101 | call, we must pass the empty string for the address */ | 103 | call, we must pass the empty string for the address */ |
104 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | ||
105 | "Address resolution failed\n"); | ||
102 | alucb->cb (alucb->cb_cls, | 106 | alucb->cb (alucb->cb_cls, |
103 | "", | 107 | "", |
104 | GNUNET_NO); | 108 | GNUNET_NO); |
@@ -190,11 +194,15 @@ GNUNET_TRANSPORT_address_to_string (const struct GNUNET_CONFIGURATION_Handle *cf | |||
190 | } | 194 | } |
191 | client = GNUNET_CLIENT_connect ("transport", cfg); | 195 | client = GNUNET_CLIENT_connect ("transport", cfg); |
192 | if (NULL == client) | 196 | if (NULL == client) |
197 | { | ||
198 | GNUNET_break (0); | ||
193 | return NULL; | 199 | return NULL; |
200 | } | ||
194 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, | 201 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, |
195 | "Client %p tries to resolve for peer `%s'address len %u \n", | 202 | "Client %p tries to resolve for peer `%s' address plugin %s len %u\n", |
196 | client, | 203 | client, |
197 | GNUNET_i2s (&address->peer), | 204 | GNUNET_i2s (&address->peer), |
205 | address->transport_name, | ||
198 | address->address_length); | 206 | address->address_length); |
199 | 207 | ||
200 | msg = GNUNET_malloc (len); | 208 | msg = GNUNET_malloc (len); |