]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MEDIUM] log: take the logged server name from the stream interface
authorWilly Tarreau <w@1wt.eu>
Sun, 13 Feb 2011 13:30:26 +0000 (14:30 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 10 Mar 2011 22:32:15 +0000 (23:32 +0100)
commit71904a4ee871ffb0c9a98506545d45441328c7a9
treeb177213c96f5bd9ad073f0e427f9d145634812f1
parent7c0a151a2e6f7ea7e6290865e41cac4c9c294538
[MEDIUM] log: take the logged server name from the stream interface

With HTTP keep-alive, logging the right server name will be quite
complex because the assigned server will possibly change before we log.
Also, when we want to log accesses to an applet, it's not easy because
the applet becomes NULL again before logging.

The logged server's name is now taken from the target stored in the
stream interface. That way we can log an applet, a server name, or we
could even log a proxy or anything else if we wanted to. Ideally the
session should contain a desired target which is the one which should
be logged.
src/log.c
src/proto_http.c