From 9a1ed89249e62b57b2dbec57d8d42ea3c761c2b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Wed, 18 Dec 2024 08:26:56 +0100 Subject: [PATCH] Add logger for Waitress access logs --- acceptance_tests/waitress_app/Dockerfile | 1 + acceptance_tests/waitress_app/production.ini | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/acceptance_tests/waitress_app/Dockerfile b/acceptance_tests/waitress_app/Dockerfile index ac659d61..69f21030 100644 --- a/acceptance_tests/waitress_app/Dockerfile +++ b/acceptance_tests/waitress_app/Dockerfile @@ -55,6 +55,7 @@ ENV \ LOG_TYPE=console \ OTHER_LOG_LEVEL=WARNING \ WAITRESS_LOG_LEVEL=WARNING \ + WSGI_LOG_LEVEL=INFO \ SQL_LOG_LEVEL=WARNING \ C2CWSGIUTILS_LOG_LEVEL=WARNING \ LOG_LEVEL=INFO \ diff --git a/acceptance_tests/waitress_app/production.ini b/acceptance_tests/waitress_app/production.ini index 595b7c54..ec13a035 100644 --- a/acceptance_tests/waitress_app/production.ini +++ b/acceptance_tests/waitress_app/production.ini @@ -51,7 +51,7 @@ clear_untrusted_proxy_headers = False ### [loggers] -keys = root, waitress, sqlalchemy, c2cwsgiutils, c2cwsgiutils_app +keys = root, waitress, wsgi, sqlalchemy, c2cwsgiutils, c2cwsgiutils_app [handlers] keys = console, json @@ -68,6 +68,12 @@ level = %(WAITRESS_LOG_LEVEL)s handlers = qualname = waitress +# Waitress access logs +[logger_wsgi] +level = %(WSGI_LOG_LEVEL)s +handlers = +qualname = wsgi + # "level = INFO" logs SQL queries. # "level = DEBUG" logs SQL queries and results. # "level = WARNING" logs neither. (Recommended for production systems.)