diff --git a/changedetectionio/__init__.py b/changedetectionio/__init__.py index 447dec27638..40fdb28b40b 100644 --- a/changedetectionio/__init__.py +++ b/changedetectionio/__init__.py @@ -182,13 +182,19 @@ def hide_referrer(response): s_type = socket.AF_INET6 if ipv6_enabled else socket.AF_INET + wsgi_enable_access_log = not strtobool(os.getenv('SILENT_WSGI', 'false')) + if ssl_mode: # @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), + log=logger, + log_output=wsgi_enable_access_log, certfile='cert.pem', keyfile='privkey.pem', server_side=True), app) 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_output=wsgi_enable_access_log)