Control WSGI logs via `SILENT_WSGI` environment variable

pull/2273/head
Andrew Kvalheim 9 months ago
parent e9695d0e2d
commit 43bfb2af6e

@ -182,7 +182,7 @@ 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' } wsgi_enable_access_log = not strtobool(os.getenv('SILENT_WSGI', 'false'))
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.

Loading…
Cancel
Save