diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-01-18 21:18:30 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-02-19 12:41:01 +0100 |
commit | 0bd15d392c8c1c4dab56c794ec88fdbd7245cc51 (patch) | |
tree | 6370f222cdb735efdbae3022b1c94fc4c7207dc4 /src/dht/gnunet-service-dht_neighbours.c | |
parent | e5f00fda52a45ebd22716debf0d9af36fb6fce0a (diff) | |
download | gnunet-0bd15d392c8c1c4dab56c794ec88fdbd7245cc51.tar.gz gnunet-0bd15d392c8c1c4dab56c794ec88fdbd7245cc51.zip |
-adding logging, minor dthu bugfixes
Diffstat (limited to 'src/dht/gnunet-service-dht_neighbours.c')
-rw-r--r-- | src/dht/gnunet-service-dht_neighbours.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/dht/gnunet-service-dht_neighbours.c b/src/dht/gnunet-service-dht_neighbours.c index 63307dea2..c4d6b7428 100644 --- a/src/dht/gnunet-service-dht_neighbours.c +++ b/src/dht/gnunet-service-dht_neighbours.c | |||
@@ -2260,7 +2260,11 @@ GDS_try_connect (void *cls, | |||
2260 | 2260 | ||
2261 | if (0 == GNUNET_memcmp (&GDS_my_identity, | 2261 | if (0 == GNUNET_memcmp (&GDS_my_identity, |
2262 | pid)) | 2262 | pid)) |
2263 | { | ||
2264 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | ||
2265 | "Got a HELLO for my own PID, ignoring it\n"); | ||
2263 | return; /* that's us! */ | 2266 | return; /* that's us! */ |
2267 | } | ||
2264 | GNUNET_CRYPTO_hash (pid, | 2268 | GNUNET_CRYPTO_hash (pid, |
2265 | sizeof(*pid), | 2269 | sizeof(*pid), |
2266 | &phash); | 2270 | &phash); |
@@ -2282,6 +2286,13 @@ GDS_try_connect (void *cls, | |||
2282 | alternative address??? */ | 2286 | alternative address??? */ |
2283 | return; | 2287 | return; |
2284 | } | 2288 | } |
2289 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, | ||
2290 | "Discovered peer %s at %s suitable for bucket %d (%u/%u), trying to connect\n", | ||
2291 | GNUNET_i2s (pid), | ||
2292 | uri, | ||
2293 | peer_bucket, | ||
2294 | bucket->peers_size, | ||
2295 | bucket_size); | ||
2285 | /* new peer that we like! */ | 2296 | /* new peer that we like! */ |
2286 | GDS_u_try_connect (pid, | 2297 | GDS_u_try_connect (pid, |
2287 | uri); | 2298 | uri); |
@@ -2492,6 +2503,10 @@ GDS_u_receive (void *cls, | |||
2492 | GNUNET_break_op (0); | 2503 | GNUNET_break_op (0); |
2493 | return; | 2504 | return; |
2494 | } | 2505 | } |
2506 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, | ||
2507 | "Handling message of type %u from peer %s\n", | ||
2508 | ntohs (mh->type), | ||
2509 | GNUNET_i2s (&pi->id)); | ||
2495 | if (GNUNET_OK != | 2510 | if (GNUNET_OK != |
2496 | GNUNET_MQ_handle_message (core_handlers, | 2511 | GNUNET_MQ_handle_message (core_handlers, |
2497 | mh)) | 2512 | mh)) |