]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: log-format: strict parsing and enable fail
authorThierry FOURNIER / OZON.IO <thierry.fournier@ozon.io>
Tue, 22 Nov 2016 22:11:21 +0000 (23:11 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 24 Nov 2016 17:54:26 +0000 (18:54 +0100)
commita2c38d790487bd372ba9771f4477fe95655d3b99
tree79259bd1a97a1e00d12fa7c205c860f675cff357
parent6fe0e1b977a8950464421ec37a0c00d3983b43a8
MEDIUM: log-format: strict parsing and enable fail

Until now, the function parse_logformat_string() never fails. It
send warnings when it parses bad format, and returns expression in
best effort.

This patch replaces warnings by alert and returns a fail code.

Maybe the warning mode is designed for a compatibility with old
configuration versions. If it is the case, now this compatibility
is broken.

[wt: no, the reason is that an alert must cause a startup failure,
 but this will be OK with next patch]
include/proto/log.h
src/log.c