Permalink
Browse files

Stop doing string interpolation at every request, regardless of log l…

…evel.
  • Loading branch information...
1 parent 943e9e6 commit 450db73ee839045e2a52a556cf1a4e23834b84b0 @erikrose erikrose committed Mar 22, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 pyelasticsearch/client.py
@@ -211,8 +211,8 @@ def send_request(self,
server_url, was_dead = self.servers.get()
url = server_url + path
self.logger.debug(
- "Making a request equivalent to this: curl -X%s '%s' -d '%s'" %
- (method, url, request_body))
+ "Making a request equivalent to this: curl -X%s '%s' -d '%s'",
+ method, url, request_body)
try:
resp = req_method(

0 comments on commit 450db73

Please sign in to comment.