From 5f7f4bf15bd1efced3926df77ee33d600dd22594 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Fri, 5 Nov 2010 11:04:00 +0000 Subject: [PATCH] minor debug update (probably temporary) --- lib/request/connect.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/request/connect.py b/lib/request/connect.py index 4f1840246..1c7000368 100644 --- a/lib/request/connect.py +++ b/lib/request/connect.py @@ -243,6 +243,9 @@ class Connect: elif "timeout" in tbMsg: warnMsg = "connection timed out to the target url" elif "BadStatusLine" in tbMsg: + debugMsg = "BadStatusLine: %s || %s || %d" % (tbMsg, e, e.line) + logger.debug(debugMsg) + warnMsg = "the target url responded with an unknown HTTP " warnMsg += "status code, try to force the HTTP User-Agent " warnMsg += "header with option --user-agent or -a"