Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

more logging

  • Loading branch information...
commit 276be3c7f583a7fe6ac3f0853ed4c22d67807316 1 parent 311a654
@andrewlin12 andrewlin12 authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 tornado/web.py
View
5 tornado/web.py
@@ -1449,8 +1449,9 @@ def log_request(self, handler):
else:
log_method = logging.error
request_time = 1000.0 * handler.request.request_time()
- log_method("%d %s %.2fms", handler.get_status(),
- handler._request_summary(), request_time)
+ error_msg = "%d %s %%.2fms" % (handler.get_status(),
+ handler._request_summary())
+ log_method(error_msg, request_time)
class HTTPError(Exception):
Please sign in to comment.
Something went wrong with that request. Please try again.