fixed logging build

This commit is contained in:
Arvid Norberg 2010-09-22 16:59:28 +00:00
parent d894dd43d8
commit fc0916d450
1 changed files with 4 additions and 0 deletions

View File

@ -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