Commit b78809d9 authored by Denis Bilenko's avatar Denis Bilenko

wsgi: do not use 'log' is it evaluates to false

parent da097e26
......@@ -75,7 +75,7 @@ class WSGIHandler(object):
def log_request(self, *args):
log = self.server.log
if log is not None:
if log:
log.write(self.format_request(*args) + '\n')
def prepare_env(self):
......
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