From 0949ebd92ac4621847468756c829f2ab95769f5f Mon Sep 17 00:00:00 2001 From: Ken Patel Date: Tue, 28 Sep 2010 23:22:35 +0000 Subject: [PATCH] panda - downloader now logs the start of all http requests (method and url) and reports url for connection timeouts --- panda/src/downloader/httpChannel.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/panda/src/downloader/httpChannel.cxx b/panda/src/downloader/httpChannel.cxx index 036e52e70e..e833e27f25 100644 --- a/panda/src/downloader/httpChannel.cxx +++ b/panda/src/downloader/httpChannel.cxx @@ -1079,7 +1079,9 @@ run_connecting_wait() { // Time to give up. downloader_cat.info() << "Timeout connecting to " - << _request.get_url().get_server_and_port() << ".\n"; + << _request.get_url().get_server_and_port() + << " for " << _request.get_url() + << ".\n"; _status_entry._status_code = SC_timeout; _state = S_try_next_proxy; return false; @@ -2442,6 +2444,10 @@ void HTTPChannel:: begin_request(HTTPEnum::Method method, const DocumentSpec &url, const string &body, bool nonblocking, size_t first_byte, size_t last_byte) { + + downloader_cat.info() + << method << " " << url << "\n"; + reset_for_new_request(); _wanted_nonblocking = nonblocking;