Show returned status code when _handle finishes

This commit is contained in:
jesopo 2019-03-13 13:33:53 +00:00
parent df3075ce27
commit 6c5a6ff9cd

View file

@ -95,8 +95,8 @@ class Handler(http.server.BaseHTTPRequestHandler):
self._respond(code, headers, response)
_log.debug("[HTTP] finishing _handle for %s from %s:%d",
[method, self.client_address[0], self.client_address[1]])
_log.debug("[HTTP] finishing _handle for %s from %s:%d (%d)",
[method, self.client_address[0], self.client_address[1]], code)
def do_GET(self):
self._handle("GET")