removed debug output that was left in by mistake in last check in

This commit is contained in:
Arvid Norberg 2005-11-02 19:11:30 +00:00
parent 728b0f219b
commit 3f38e4c38d
2 changed files with 4 additions and 7 deletions

View File

@ -897,7 +897,6 @@ namespace libtorrent
assert(c.remote() == c.get_socket()->sender()); assert(c.remote() == c.get_socket()->sender());
peer p(c.remote(), peer::not_connectable); peer p(c.remote(), peer::not_connectable);
m_peers.push_back(p); m_peers.push_back(p);
check_invariant();
i = m_peers.end()-1; i = m_peers.end()-1;
} }
else else

View File

@ -882,13 +882,11 @@ namespace libtorrent { namespace detail
p->first->sender() p->first->sender()
, p->second->id() , p->second->id()
, "connection attempt failed")); , "connection attempt failed"));
// TODO: TEMP!
#warning TEMP!
std::ofstream log("connect.log", std::ios::app);
log << boost::posix_time::microsec_clock::universal_time() << " FAILED: "
<< (*i)->sender().as_string() << std::endl;
#if defined(TORRENT_VERBOSE_LOGGING) || defined(TORRENT_LOGGING)
(*m_logger) << boost::posix_time::microsec_clock::universal_time() << " FAILED: "
<< (*i)->sender().as_string() << std::endl;
#endif
p->second->set_failed(); p->second->set_failed();
m_half_open.erase(p); m_half_open.erase(p);
} }