Skip to content
Browse files

fix exception

  • Loading branch information...
1 parent 276be3c commit e56fed2a21fa82c01f96b3c8df128a4326fa5fef @andrewlin12 andrewlin12 committed Oct 31, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 tornado/web.py
View
5 tornado/web.py
@@ -1449,9 +1449,10 @@ def log_request(self, handler):
else:
log_method = logging.error
request_time = 1000.0 * handler.request.request_time()
- error_msg = "%d %s %%.2fms" % (handler.get_status(),
+ error_msg = "%d %s" % (handler.get_status(),
handler._request_summary())
- log_method(error_msg, request_time)
+ error_msg = error_msg.replace('%', '%%')
+ log_method(error_msg + " %.2fms", request_time)
class HTTPError(Exception):

0 comments on commit e56fed2

Please sign in to comment.
Something went wrong with that request. Please try again.