fix warnings and a peer logging bug

This commit is contained in:
Arvid Norberg
2015-05-10 18:38:10 +00:00
parent 0029ac62a8
commit 494b425ea1
9 changed files with 43 additions and 19 deletions

View File

@@ -6464,6 +6464,7 @@ retry:
m_alerts.emplace_alert<dht_outgoing_get_peers_alert>(target, sent_target, ep);
}
TORRENT_FORMAT(3,4)
void session_impl::log(libtorrent::dht::dht_logger::dht_module_t m, char const* fmt, ...)
{
if (!m_alerts.should_post<dht_log_alert>()) return;