logging improvements
This commit is contained in:
parent
39eaf766fa
commit
a4b69e5b2d
|
@ -526,7 +526,14 @@ namespace libtorrent
|
||||||
// optimization, don't send have messages
|
// optimization, don't send have messages
|
||||||
// to peers that already have the piece
|
// to peers that already have the piece
|
||||||
if (!m_ses.settings().send_redundant_have
|
if (!m_ses.settings().send_redundant_have
|
||||||
&& has_piece(index)) return;
|
&& has_piece(index))
|
||||||
|
{
|
||||||
|
#ifdef TORRENT_VERBOSE_LOGGING
|
||||||
|
(*m_logger) << time_now_string()
|
||||||
|
<< " ==> HAVE [ piece: " << index << " ] SUPRESSED\n";
|
||||||
|
#endif
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef TORRENT_VERBOSE_LOGGING
|
#ifdef TORRENT_VERBOSE_LOGGING
|
||||||
(*m_logger) << time_now_string()
|
(*m_logger) << time_now_string()
|
||||||
|
|
|
@ -1149,7 +1149,9 @@ namespace libtorrent
|
||||||
|
|
||||||
#if defined(TORRENT_VERBOSE_LOGGING) || defined(TORRENT_LOGGING)
|
#if defined(TORRENT_VERBOSE_LOGGING) || defined(TORRENT_LOGGING)
|
||||||
(*m_ses.m_logger) << time_now_string() << " *** PIECE_FINISHED [ p: "
|
(*m_ses.m_logger) << time_now_string() << " *** PIECE_FINISHED [ p: "
|
||||||
<< index << " chk: " << (passed_hash_check?"passed":"failed") << " ]\n";
|
<< index << " chk: " << ((passed_hash_check == 0)
|
||||||
|
?"passed":passed_hash_check == -1
|
||||||
|
?"disk failed":"failed") << " ]\n";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
bool was_seed = is_seed();
|
bool was_seed = is_seed();
|
||||||
|
|
Loading…
Reference in New Issue