Skip to content

Commit

Permalink
Add logger for Waitress access logs
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Dec 18, 2024
1 parent 38e4654 commit 9a1ed89
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions acceptance_tests/waitress_app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
8 changes: 7 additions & 1 deletion acceptance_tests/waitress_app/production.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.)
Expand Down

0 comments on commit 9a1ed89

Please sign in to comment.