From b687af2bf987c0c853f8650f1d376f45de10a07e Mon Sep 17 00:00:00 2001 From: lebaudantoine Date: Fri, 4 Sep 2026 23:59:12 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=8A(backend)=20log=20request=20duratio?= =?UTF-8?q?n=20in=20Gunicorn=20workers?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Include the time taken by each request in the Gunicorn worker access logs, so we can spot slow endpoints and correlate latency patterns directly from the logs. --- CHANGELOG.md | 1 + docker/files/usr/local/etc/gunicorn/meet.py | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0a0dabcf..16b78966 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ and this project adheres to - ✨(frontend) add 1080p sending resolution option #1660 - ✨(backend) add Traefik support via configurable media-auth url header #1649 - ✨(backend) update a room's attributes from the external API +- 🔊(backend) log request duration in Gunicorn workers ### Changed diff --git a/docker/files/usr/local/etc/gunicorn/meet.py b/docker/files/usr/local/etc/gunicorn/meet.py index 6de40804..e1386a53 100644 --- a/docker/files/usr/local/etc/gunicorn/meet.py +++ b/docker/files/usr/local/etc/gunicorn/meet.py @@ -14,3 +14,4 @@ accesslog = "-" # Using '-' for the error log file makes gunicorn log errors to stderr errorlog = "-" loglevel = "info" +access_log_format = '%(h)s %(l)s %(u)s %(t)s "%(r)s" %(s)s %(b)s "%(f)s" "%(a)s" %(M)s'