warehouse
warehouse copied to clipboard
feat(logging): gunicorn extra parsing
Split off from https://github.com/pypi/warehouse/pull/18748
opensearch-1 | [2025-09-24T21:32:40,462][INFO ][o.o.j.s.JobSweeper ] [356b8f0e5f55] Running full sweep
db-1 | 2025-09-24 21:32:42.281 UTC [27] LOG: checkpoint starting: time
web-1 | 2025-09-24T21:32:48.907827Z [info ] http_request [gunicorn.access] dd.env=development dd.version=unknown method=GET path=/ protocol=HTTP/1.1 referrer=None remote_addr=192.168.147.1 request='GET / HTTP/1.1' size=24337 status=200 time='24/Sep/2025:21:32:48 +0000' user=None user_agent=curl/8.7.1
Adds strucutre to gunicorn logging buty also dev renderer for easier-on-the-eyes viewing in terminal locally (dev only)
pairs with https://github.com/pypi/warehouse/pull/18843