From 269b71324eb55e18348a1e3f1c88f560abf7222d Mon Sep 17 00:00:00 2001 From: arvidn Date: Mon, 27 Aug 2018 10:43:32 +0200 Subject: [PATCH] improve log statement when not unchoking a peer --- src/peer_connection.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/peer_connection.cpp b/src/peer_connection.cpp index 3b8912bed..5962ae5de 100644 --- a/src/peer_connection.cpp +++ b/src/peer_connection.cpp @@ -1738,8 +1738,10 @@ namespace libtorrent else { peer_log(peer_log_alert::info, "UNCHOKE", "did not unchoke, the number of uploads (%d) " - "is more than or equal to the limit (%d)" - , m_ses.num_uploads(), m_settings.get_int(settings_pack::unchoke_slots_limit)); + "is more than or equal to the available slots (%d), limit (%d)" + , int(m_counters[counters::num_peers_up_unchoked]) + , int(m_counters[counters::num_unchoke_slots]) + , m_settings.get_int(settings_pack::unchoke_slots_limit)); } #endif }