From 609b5eb4ba6fadb1d96f8363d3305f63bf2374b5 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sun, 18 Jan 2015 15:03:18 +0000 Subject: [PATCH] fix dht logging build --- src/kademlia/dht_tracker.cpp | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/src/kademlia/dht_tracker.cpp b/src/kademlia/dht_tracker.cpp index 07a739730..ddaa2240e 100644 --- a/src/kademlia/dht_tracker.cpp +++ b/src/kademlia/dht_tracker.cpp @@ -526,28 +526,6 @@ namespace libtorrent { namespace dht , addr.address().is_v6() ? 48 : 28); m_counters.inc_stats_counter(counters::dht_messages_out); #ifdef TORRENT_DHT_VERBOSE_LOGGING - if (e["y"].string() == "r") - { -/* - // This doesn't work. r is a dictionary with return - // values. The query type isn't part of the response - std::string cmd = e["r"].string(); - int cmd_idx = -1; - if (cmd == "ping") cmd_idx = 0; - else if (cmd == "find_node") cmd_idx = 1; - else if (cmd == "get_peers") cmd_idx = 2; - else if (cmd == "announce_peeer") cmd_idx = 3; - if (cmd_idx >= 0) - { - ++m_replies_sent[cmd_idx]; - m_replies_bytes_sent[cmd_idx] += int(m_send_buf.size()); - } -*/ - } - else if (e["y"].string() == "q") - { - m_queries_out_bytes += m_send_buf.size(); - } TORRENT_LOG(dht_tracker) << "==> " << addr << " " << log_line.str(); #endif return true;