Skip logging for haproxy health checks
The health check requests from haproxy cause uwsgi to write a lot of useless log lines. This can make it more difficult to find a problem with a particular service. This patch adds a route to look for the `osa-haproxy-healthcheck` user agent string, which haproxy uses when performing health checks. Any requests with that user agent are not logged. Closes-Bug: 1742718 Change-Id: Id06e939f25299d48f4054eec927505ed2ecdb554
This commit is contained in:
parent
96b2cf1fd2
commit
1302539f11
@ -20,3 +20,6 @@ logfile-chmod = 644
|
||||
http-auto-chunked = true
|
||||
http-raw-body = true
|
||||
socket-timeout = 10
|
||||
|
||||
# Avoid filling up the logs with health check requests from haproxy.
|
||||
route-user-agent = ^osa-haproxy-healthcheck$ donotlog:
|
||||
|
Loading…
x
Reference in New Issue
Block a user