]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: log: move 'log' keyword parsing in dedicated function
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 26 Mar 2018 13:54:32 +0000 (15:54 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 5 Apr 2018 13:13:54 +0000 (15:13 +0200)
commit4b0b79dd564a18b4ea21c237991ffaf56c032eac
tree41bf7f59d06e54ec4f8604b94ef5dc3e8edf5eca
parent36bda1cd4ae49724d37cc6cf24729d4303fb10cc
MINOR: log: move 'log' keyword parsing in dedicated function

Now, the function parse_logsrv should be used to parse a "log" line. This
function will update the list of loggers passed in argument. It can release all
log servers when "no log" line was parsed (by the caller) or it can parse "log
global" or "log <address> ... " lines. It takes care of checking the caller
context (global or not) to prohibit "log global" usage in the global section.
include/proto/log.h
src/cfgparse.c
src/log.c