Skip to content

Commit

Permalink
Reduce logging verbosity in curl_httpclient to match simple_httpclient.
Browse files Browse the repository at this point in the history
  • Loading branch information
bdarnell committed Jun 27, 2011
1 parent 5d36a5d commit b0750cb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tornado/curl_httpclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,11 +389,11 @@ def ioctl(cmd):
userpwd = "%s:%s" % (request.auth_username, request.auth_password)
curl.setopt(pycurl.HTTPAUTH, pycurl.HTTPAUTH_BASIC)
curl.setopt(pycurl.USERPWD, userpwd)
logging.info("%s %s (username: %r)", request.method, request.url,
request.auth_username)
logging.debug("%s %s (username: %r)", request.method, request.url,
request.auth_username)
else:
curl.unsetopt(pycurl.USERPWD)
logging.info("%s %s", request.method, request.url)
logging.debug("%s %s", request.method, request.url)
if threading.activeCount() > 1:
# libcurl/pycurl is not thread-safe by default. When multiple threads
# are used, signals should be disabled. This has the side effect
Expand Down

0 comments on commit b0750cb

Please sign in to comment.