]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: http: add support for action "set-log-level" in http-request/http-response
authorWilly Tarreau <w@1wt.eu>
Tue, 11 Jun 2013 15:45:46 +0000 (17:45 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 11 Jun 2013 15:50:26 +0000 (17:50 +0200)
commit9a355ec257de12ec8ab6366d15ff59add8a8061f
tree1eabee1c1ce1719f2081386c4e33f267461bb083
parentabcd5145f82cff7beb6b1b25b90a8266d672a6f7
MEDIUM: http: add support for action "set-log-level" in http-request/http-response

Some users want to disable logging for certain non-important requests such as
stats requests or health-checks coming from another equipment. Other users want
to log with a higher importance (eg: notice) some special traffic (POST requests,
authenticated requests, requests coming from suspicious IPs) or some abnormally
large responses.

This patch responds to all these needs at once by adding a "set-log-level" action
to http-request/http-response. The 8 syslog levels are supported, as well as "silent"
to disable logging.
doc/configuration.txt
include/types/proto_http.h
src/proto_http.c
src/session.c