improved logging of bitfields
This commit is contained in:
parent
cb27cd3b73
commit
0344cadd69
|
@ -703,7 +703,14 @@ namespace libtorrent
|
||||||
#ifdef TORRENT_VERBOSE_LOGGING
|
#ifdef TORRENT_VERBOSE_LOGGING
|
||||||
using namespace boost::posix_time;
|
using namespace boost::posix_time;
|
||||||
(*m_logger) << to_simple_string(second_clock::universal_time())
|
(*m_logger) << to_simple_string(second_clock::universal_time())
|
||||||
<< " <== BITFIELD\n";
|
<< " <== BITFIELD ";
|
||||||
|
|
||||||
|
for (int i = 0; i < int(bitfield.size()); ++i)
|
||||||
|
{
|
||||||
|
if (bitfield[i]) (*m_logger) << "1";
|
||||||
|
else (*m_logger) << "0";
|
||||||
|
}
|
||||||
|
(*m_logger) << "\n";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// if we don't have the metedata, we cannot
|
// if we don't have the metedata, we cannot
|
||||||
|
|
Loading…
Reference in New Issue