diff --git a/src/torrent.cpp b/src/torrent.cpp index 3290ac24f..70bb9172c 100644 --- a/src/torrent.cpp +++ b/src/torrent.cpp @@ -5541,11 +5541,15 @@ namespace libtorrent #if defined TORRENT_VERBOSE_LOGGING || defined TORRENT_ERROR_LOGGING || defined TORRENT_LOGGING void torrent::log_to_all_peers(char const* message) { +#if defined TORRENT_VERBOSE_LOGGING || defined TORRENT_ERROR_LOGGING for (peer_iterator i = m_connections.begin(); i != m_connections.end(); ++i) { (*(*i)->m_logger) << time_now_string() << " *** " << message << "\n"; } +#endif + + (*m_ses.m_logger) << time_now_string() << " " << message << "\n"; } #endif