remove verbose peer logging
This commit is contained in:
parent
eb5f29a79c
commit
792cfd1cc6
|
@ -523,9 +523,6 @@ namespace aux {
|
|||
, char const* event, char const* fmt, ...) const noexcept final TORRENT_FORMAT(4,5);
|
||||
void peer_log(peer_log_alert::direction_t direction
|
||||
, char const* event) const noexcept;
|
||||
|
||||
time_point m_connect_time;
|
||||
time_point m_bitfield_time;
|
||||
#endif
|
||||
|
||||
// the message handlers are called
|
||||
|
|
|
@ -1233,7 +1233,6 @@ namespace libtorrent {
|
|||
INVARIANT_CHECK;
|
||||
|
||||
#ifndef TORRENT_DISABLE_LOGGING
|
||||
m_connect_time = clock_type::now();
|
||||
peer_log(peer_log_alert::info, "ATTACH", "attached to torrent");
|
||||
#endif
|
||||
|
||||
|
@ -2130,12 +2129,6 @@ namespace libtorrent {
|
|||
|
||||
m_bitfield_received = true;
|
||||
|
||||
#ifndef TORRENT_DISABLE_LOGGING
|
||||
m_bitfield_time = clock_type::now();
|
||||
t->debug_log("HANDSHAKE [%p] (%d ms)"
|
||||
, static_cast<void*>(this)
|
||||
, int(total_milliseconds(m_bitfield_time - m_connect_time)));
|
||||
#endif
|
||||
// if we don't have metadata yet
|
||||
// just remember the bitmask
|
||||
// don't update the piecepicker
|
||||
|
@ -3258,13 +3251,6 @@ namespace libtorrent {
|
|||
m_upload_only = true;
|
||||
m_bitfield_received = true;
|
||||
|
||||
#ifndef TORRENT_DISABLE_LOGGING
|
||||
m_bitfield_time = clock_type::now();
|
||||
t->debug_log("HANDSHAKE [%p] (%d ms)"
|
||||
, static_cast<void*>(this)
|
||||
, int(total_milliseconds(m_bitfield_time - m_connect_time)));
|
||||
#endif
|
||||
|
||||
// if we don't have metadata yet
|
||||
// just remember the bitmask
|
||||
// don't update the piecepicker
|
||||
|
@ -3331,12 +3317,6 @@ namespace libtorrent {
|
|||
t->set_seed(m_peer_info, false);
|
||||
m_bitfield_received = true;
|
||||
|
||||
#ifndef TORRENT_DISABLE_LOGGING
|
||||
m_bitfield_time = clock_type::now();
|
||||
t->debug_log("HANDSHAKE [%p] (%d ms)"
|
||||
, static_cast<void*>(this)
|
||||
, int(total_milliseconds(m_bitfield_time - m_connect_time)));
|
||||
#endif
|
||||
m_have_piece.clear_all();
|
||||
m_num_pieces = 0;
|
||||
|
||||
|
@ -6017,10 +5997,6 @@ namespace libtorrent {
|
|||
|
||||
INVARIANT_CHECK;
|
||||
|
||||
#ifndef TORRENT_DISABLE_LOGGING
|
||||
m_connect_time = aux::time_now();
|
||||
#endif
|
||||
|
||||
// if t is nullptr, we better not be connecting, since
|
||||
// we can't decrement the connecting counter
|
||||
std::shared_ptr<torrent> t = m_torrent.lock();
|
||||
|
|
Loading…
Reference in New Issue