diff --git a/src/peer_connection.cpp b/src/peer_connection.cpp index 1dae48110..c2f49b3a3 100755 --- a/src/peer_connection.cpp +++ b/src/peer_connection.cpp @@ -526,7 +526,14 @@ namespace libtorrent // optimization, don't send have messages // to peers that already have the piece 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 (*m_logger) << time_now_string() diff --git a/src/torrent.cpp b/src/torrent.cpp index 73c1284be..a901074fd 100755 --- a/src/torrent.cpp +++ b/src/torrent.cpp @@ -1149,7 +1149,9 @@ namespace libtorrent #if defined(TORRENT_VERBOSE_LOGGING) || defined(TORRENT_LOGGING) (*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 bool was_seed = is_seed();