diff options
Diffstat (limited to 'src/dht/gnunet-dht-driver.c')
-rw-r--r-- | src/dht/gnunet-dht-driver.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/dht/gnunet-dht-driver.c b/src/dht/gnunet-dht-driver.c index d3ab1902c..da51193a0 100644 --- a/src/dht/gnunet-dht-driver.c +++ b/src/dht/gnunet-dht-driver.c | |||
@@ -859,6 +859,7 @@ log_topology_cb (void *cls, | |||
859 | struct TopologyIteratorContext *topo_ctx = cls; | 859 | struct TopologyIteratorContext *topo_ctx = cls; |
860 | if ((first != NULL) && (second != NULL)) | 860 | if ((first != NULL) && (second != NULL)) |
861 | { | 861 | { |
862 | /* GNUNET_log(GNUNET_ERROR_TYPE_WARNING, "According to CORE, peer %s is connected to %s\n", GNUNET_i2s(first), GNUNET_h2s(&second->hashPubKey));*/ | ||
862 | if ((topo_ctx->peers_seen != NULL) && (GNUNET_NO == GNUNET_CONTAINER_multihashmap_contains(topo_ctx->peers_seen, &first->hashPubKey))) | 863 | if ((topo_ctx->peers_seen != NULL) && (GNUNET_NO == GNUNET_CONTAINER_multihashmap_contains(topo_ctx->peers_seen, &first->hashPubKey))) |
863 | { | 864 | { |
864 | GNUNET_CONTAINER_multihashmap_put(topo_ctx->peers_seen, &first->hashPubKey, NULL, GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_ONLY); | 865 | GNUNET_CONTAINER_multihashmap_put(topo_ctx->peers_seen, &first->hashPubKey, NULL, GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_ONLY); |
@@ -2351,6 +2352,9 @@ topology_callback (void *cls, | |||
2351 | else | 2352 | else |
2352 | { | 2353 | { |
2353 | failed_connections++; | 2354 | failed_connections++; |
2355 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Failed to connect peer %s to peer %s with error :\n%s\n", | ||
2356 | first_daemon->shortname, | ||
2357 | second_daemon->shortname, emsg); | ||
2354 | #if VERBOSE | 2358 | #if VERBOSE |
2355 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Failed to connect peer %s to peer %s with error :\n%s\n", | 2359 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Failed to connect peer %s to peer %s with error :\n%s\n", |
2356 | first_daemon->shortname, | 2360 | first_daemon->shortname, |
@@ -2366,6 +2370,8 @@ topology_callback (void *cls, | |||
2366 | "Created %d total connections, which is our target number! Starting next phase of testing.\n", | 2370 | "Created %d total connections, which is our target number! Starting next phase of testing.\n", |
2367 | total_connections); | 2371 | total_connections); |
2368 | #endif | 2372 | #endif |
2373 | if (failed_connections > 0) | ||
2374 | GNUNET_log(GNUNET_ERROR_TYPE_WARNING, "While connecting, had %u failed connections.\n", failed_connections); | ||
2369 | if (dhtlog_handle != NULL) | 2375 | if (dhtlog_handle != NULL) |
2370 | { | 2376 | { |
2371 | dhtlog_handle->update_connections (total_connections); | 2377 | dhtlog_handle->update_connections (total_connections); |