Use common logger for WSGI logs

By default the WSGI server logs directly to stderr.
pull/2273/head
Andrew Kvalheim 9 months ago
parent e3b8c0f5af
commit d41531abd2

@ -185,10 +185,12 @@ def main():
if ssl_mode: if ssl_mode:
# @todo finalise SSL config, but this should get you in the right direction if you need it. # @todo finalise SSL config, but this should get you in the right direction if you need it.
eventlet.wsgi.server(eventlet.wrap_ssl(eventlet.listen((host, port), s_type), eventlet.wsgi.server(eventlet.wrap_ssl(eventlet.listen((host, port), s_type),
log=logger,
certfile='cert.pem', certfile='cert.pem',
keyfile='privkey.pem', keyfile='privkey.pem',
server_side=True), app) server_side=True), app)
else: else:
eventlet.wsgi.server(eventlet.listen((host, int(port)), s_type), app) eventlet.wsgi.server(eventlet.listen((host, int(port)), s_type), app,
log=logger)

Loading…
Cancel
Save