fixed logging build
This commit is contained in:
@@ -5541,11 +5541,15 @@ namespace libtorrent
|
|||||||
#if defined TORRENT_VERBOSE_LOGGING || defined TORRENT_ERROR_LOGGING || defined TORRENT_LOGGING
|
#if defined TORRENT_VERBOSE_LOGGING || defined TORRENT_ERROR_LOGGING || defined TORRENT_LOGGING
|
||||||
void torrent::log_to_all_peers(char const* message)
|
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();
|
for (peer_iterator i = m_connections.begin();
|
||||||
i != m_connections.end(); ++i)
|
i != m_connections.end(); ++i)
|
||||||
{
|
{
|
||||||
(*(*i)->m_logger) << time_now_string() << " *** " << message << "\n";
|
(*(*i)->m_logger) << time_now_string() << " *** " << message << "\n";
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
(*m_ses.m_logger) << time_now_string() << " " << message << "\n";
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user