From fc0916d45002ee2f2a30bb92a5f329d7b4ff4b5f Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Wed, 22 Sep 2010 16:59:28 +0000 Subject: [PATCH] fixed logging build --- src/torrent.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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