The WSGI server logs every HTTP response at level INFO, which is
inappropriately verbose. As a workaround, disable response logging at
application log levels above DEBUG.
pull/2273/head
Andrew Kvalheim 9 months ago
parent d41531abd2
commit e9695d0e2d

@ -182,15 +182,19 @@ def main():
s_type = socket.AF_INET6 if ipv6_enabled else socket.AF_INET s_type = socket.AF_INET6 if ipv6_enabled else socket.AF_INET
wsgi_enable_access_log = logger_level in { 'TRACE', 'DEBUG' }
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, log=logger,
log_output=wsgi_enable_access_log,
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) log=logger,
log_output=wsgi_enable_access_log)

Loading…
Cancel
Save