From 7434368652efa2977069964fcdeb39d36c4cb0cb Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Wed, 7 May 2008 23:25:47 +0000 Subject: [PATCH] fixed dht logging error --- src/kademlia/traversal_algorithm.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/kademlia/traversal_algorithm.cpp b/src/kademlia/traversal_algorithm.cpp index 1ef27da16..138d42905 100644 --- a/src/kademlia/traversal_algorithm.cpp +++ b/src/kademlia/traversal_algorithm.cpp @@ -88,7 +88,8 @@ boost::pool<>& traversal_algorithm::allocator() const void traversal_algorithm::traverse(node_id const& id, udp::endpoint addr) { #ifdef TORRENT_DHT_VERBOSE_LOGGING - TORRENT_LOG(traversal) << "node returned a list which included a node with id 0"; + if (id.is_all_zeros()) + TORRENT_LOG(traversal) << time_now_string() << " WARNING: node returned a list which included a node with id 0"; #endif add_entry(id, addr, 0); }