log the url in udp_tracker log lines

This commit is contained in:
Arvid Norberg 2008-12-30 17:37:38 +00:00
parent 06da1f8e8a
commit b873ffeb01
1 changed files with 5 additions and 2 deletions

View File

@ -191,7 +191,8 @@ namespace libtorrent
{
#if defined TORRENT_VERBOSE_LOGGING || defined TORRENT_LOGGING || defined TORRENT_ERROR_LOGGING
boost::shared_ptr<request_callback> cb = requester();
if (cb) cb->debug_log("*** UDP_TRACKER [ timed out ]");
std::stringstream msg << "*** UDP_TRACKER [ timed out url: " << tracker_req().url << " ]";
if (cb) cb->debug_log(msg.str().c_str());
#endif
m_socket.close();
m_name_lookup.cancel();
@ -391,7 +392,9 @@ namespace libtorrent
#if defined TORRENT_VERBOSE_LOGGING || defined TORRENT_LOGGING
if (cb)
{
cb->debug_log("<== UDP_TRACKER_ANNOUNCE_RESPONSE");
boost::shared_ptr<request_callback> cb = requester();
std::stringstream msg << "<== UDP_ANNOUNCE_RESPONSE [ url: " << tracker_req().url << " ]";
cb->debug_log(msg.str().c_str());
}
#endif