[wwwsearch-commits] r19163 -
wwwsearch/ClientCookie/trunk/ClientCookie
jjlee at codespeak.net
jjlee at codespeak.net
Sat Oct 29 16:16:34 CEST 2005
Author: jjlee
Date: Sat Oct 29 16:16:33 2005
New Revision: 19163
Modified:
wwwsearch/ClientCookie/trunk/ClientCookie/_ClientCookie.py
wwwsearch/ClientCookie/trunk/ClientCookie/_urllib2_support.py
Log:
Make logging categories more fine-grained
Modified: wwwsearch/ClientCookie/trunk/ClientCookie/_ClientCookie.py
==============================================================================
--- wwwsearch/ClientCookie/trunk/ClientCookie/_ClientCookie.py (original)
+++ wwwsearch/ClientCookie/trunk/ClientCookie/_ClientCookie.py Sat Oct 29 16:16:33 2005
@@ -71,7 +71,7 @@
from _HeadersUtil import split_header_words, parse_ns_headers
from _Util import startswith, endswith, isstringlike, getheaders
from _Debug import warn, getLogger
-debug = getLogger("ClientCookie").debug
+debug = getLogger("ClientCookie.cookies").debug
try: bool
except NameError:
Modified: wwwsearch/ClientCookie/trunk/ClientCookie/_urllib2_support.py
==============================================================================
--- wwwsearch/ClientCookie/trunk/ClientCookie/_urllib2_support.py (original)
+++ wwwsearch/ClientCookie/trunk/ClientCookie/_urllib2_support.py Sat Oct 29 16:16:33 2005
@@ -17,7 +17,6 @@
from _ClientCookie import CookieJar, request_host
from _Util import isstringlike, startswith, getheaders
from _Debug import getLogger
-info = getLogger("ClientCookie").info
try: True
except NameError:
@@ -443,6 +442,7 @@
def http_response(self, request, response):
if not hasattr(response, "seek"):
response = response_seek_wrapper(response)
+ info = getLogger("ClientCookie.http_responses").info
try:
info(response.read())
finally:
@@ -455,6 +455,7 @@
class HTTPRedirectDebugProcessor(BaseHandler):
def http_request(self, request):
if hasattr(request, "redirect_dict"):
+ info = getLogger("ClientCookie.http_redirects").info
info("redirecting to %s", request.get_full_url())
return request
More information about the wwwsearch-commits
mailing list