Commit 89a243c7 authored by Denis Bilenko's avatar Denis Bilenko

pywsgi.py: do not log if the socket is set None (for websocket)

parent 1d57310e
......@@ -432,7 +432,8 @@ class WSGIHandler(object):
self.result.close()
self.wsgi_input._discard()
self.time_finish = time.time()
self.log_request()
if self.socket is not None:
self.log_request()
def get_environ(self):
env = self.server.get_environ()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment