logs the distance between key and node when announcing
This commit is contained in:
parent
bbf9c83edc
commit
1522f52db8
|
@ -272,6 +272,9 @@ namespace
|
||||||
for (std::vector<node_entry>::const_iterator i = v.begin()
|
for (std::vector<node_entry>::const_iterator i = v.begin()
|
||||||
, end(v.end()); i != end; ++i)
|
, end(v.end()); i != end; ++i)
|
||||||
{
|
{
|
||||||
|
#ifdef TORRENT_DHT_VERBOSE_LOGGING
|
||||||
|
TORRENT_LOG(node) << " distance: " << distance_exp(ih, i->id);
|
||||||
|
#endif
|
||||||
observer_ptr o(new (rpc.allocator().malloc()) get_peers_observer(ih, listen_port, rpc, f));
|
observer_ptr o(new (rpc.allocator().malloc()) get_peers_observer(ih, listen_port, rpc, f));
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
o->m_in_constructor = false;
|
o->m_in_constructor = false;
|
||||||
|
|
Loading…
Reference in New Issue