Skip to content

Commit

Permalink
Pass log.info() formatted values correctly
Browse files Browse the repository at this point in the history
It should be

    log.info("%s", "spam")

not

    log.info("%s" % "spam")
  • Loading branch information
berkerpeksag committed Jul 12, 2017
1 parent 2b7b63a commit 610596c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gunicorn/glogging.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ def access(self, resp, req, environ, request_time):
request_time))

try:
self.access_log.info(self.cfg.access_log_format % safe_atoms)
self.access_log.info(self.cfg.access_log_format, safe_atoms)
except:
self.error(traceback.format_exc())

Expand Down

0 comments on commit 610596c

Please sign in to comment.