Commit da097e26 authored by Denis Bilenko's avatar Denis Bilenko

pywsgi: allow passing log=None to disable access logs

parent 34611101
......@@ -478,14 +478,14 @@ class WSGIServer(StreamServer):
'wsgi.multiprocess': False,
'wsgi.run_once': False}
def __init__(self, listener, application=None, backlog=None, spawn='default', log=None, handler_class=None,
def __init__(self, listener, application=None, backlog=None, spawn='default', log='default', handler_class=None,
environ=None, **ssl_args):
StreamServer.__init__(self, listener, backlog=backlog, spawn=spawn, **ssl_args)
if application is not None:
self.application = application
if handler_class is not None:
self.handler_class = handler_class
if log is None:
if log == 'default':
self.log = sys.stderr
else:
self.log = log
......
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