*** empty log message ***

This commit is contained in:
Arvid Norberg 2005-03-20 10:55:33 +00:00
parent e8c56ad6bb
commit 5751af2e6a
2 changed files with 7 additions and 7 deletions

View File

@ -796,7 +796,7 @@ namespace libtorrent
throw protocol_error("too many connections, refusing incoming connection"); // cause a disconnect
}
#ifndef NDEBUG
#ifdef TORRENT_VERBOSE_LOGGING
if (c.get_socket()->sender().ip() == m_torrent->current_tracker().ip())
{
m_torrent->debug_log("overriding connection limit for tracker NAT-check");

View File

@ -295,7 +295,7 @@ namespace libtorrent { namespace detail
std::string msg = "cannot listen on the given interface '" + m_listen_interface.as_string() + "'";
m_alerts.post_alert(listen_failed_alert(msg));
}
#ifndef NDEBUG
#ifdef TORRENT_VERBOSE_LOGGING
std::string msg = "cannot listen on the given interface '" + m_listen_interface.as_string() + "'";
(*m_logger) << msg << "\n";
#endif
@ -312,7 +312,7 @@ namespace libtorrent { namespace detail
<< ", " << m_listen_port_range.second
<< "] could be opened for listening";
m_alerts.post_alert(listen_failed_alert(msg.str()));
#ifndef NDEBUG
#ifdef TORRENT_VERBOSE_LOGGING
(*m_logger) << msg.str() << "\n";
#endif
m_listen_socket.reset();
@ -326,7 +326,7 @@ namespace libtorrent { namespace detail
m_alerts.post_alert(listen_failed_alert(e.what()));
}
#ifndef NDEBUG
#ifdef TORRENT_VERBOSE_LOGGING
if (m_listen_socket)
{
(*m_logger) << "listening on port: " << m_listen_interface.port << "\n";
@ -513,7 +513,7 @@ namespace libtorrent { namespace detail
}
catch(std::exception& e)
{
#ifndef NDEBUG
#ifdef TORRENT_VERBOSE_LOGGING
(*m_logger) << "accept failed: " << e.what() << "\n";
#endif
}
@ -522,7 +522,7 @@ namespace libtorrent { namespace detail
s->set_blocking(false);
// we got a connection request!
m_incoming_connection = true;
#ifndef NDEBUG
#ifdef TORRENT_VERBOSE_LOGGING
(*m_logger) << s->sender().as_string() << " <== INCOMING CONNECTION\n";
#endif
// TODO: filter ip:s
@ -622,7 +622,7 @@ namespace libtorrent { namespace detail
std::string msg = "cannot listen on the given interface '" + m_listen_interface.as_string() + "'";
m_alerts.post_alert(listen_failed_alert(msg));
}
#ifndef NDEBUG
#ifdef TORRENT_VERBOSE_LOGGING
std::string msg = "cannot listen on the given interface '" + m_listen_interface.as_string() + "'";
(*m_logger) << msg << "\n";
#endif