fix ut_metadata logging
This commit is contained in:
parent
9a49372368
commit
3507e5f909
|
@ -216,7 +216,7 @@ namespace libtorrent { namespace
|
||||||
TORRENT_ASSERT(!m_pc.associated_torrent().expired());
|
TORRENT_ASSERT(!m_pc.associated_torrent().expired());
|
||||||
|
|
||||||
#ifdef TORRENT_VERBOSE_LOGGING
|
#ifdef TORRENT_VERBOSE_LOGGING
|
||||||
m_pc.peer_log("<== UT_METADATA [ type: %d | piece: %d ]", type, piece);
|
m_pc.peer_log("==> UT_METADATA [ type: %d | piece: %d ]", type, piece);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// abort if the peer doesn't support the metadata extension
|
// abort if the peer doesn't support the metadata extension
|
||||||
|
@ -235,7 +235,7 @@ namespace libtorrent { namespace
|
||||||
if (piece < 0 || piece >= int(m_tp.metadata().left() + 16 * 1024 - 1)/(16*1024))
|
if (piece < 0 || piece >= int(m_tp.metadata().left() + 16 * 1024 - 1)/(16*1024))
|
||||||
{
|
{
|
||||||
#ifdef TORRENT_VERBOSE_LOGGING
|
#ifdef TORRENT_VERBOSE_LOGGING
|
||||||
m_pc.peer_log("<== UT_METADATA [ invalid piece %d metadata size: %d ]"
|
m_pc.peer_log("*** UT_METADATA [ invalid piece %d metadata size: %d ]"
|
||||||
, piece, int(m_tp.metadata().left()));
|
, piece, int(m_tp.metadata().left()));
|
||||||
#endif
|
#endif
|
||||||
m_pc.disconnect(errors::invalid_metadata_message, 2);
|
m_pc.disconnect(errors::invalid_metadata_message, 2);
|
||||||
|
|
Loading…
Reference in New Issue