]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: log-format: Use standard HAProxy log system to report errors
authorThierry FOURNIER / OZON.IO <thierry.fournier@ozon.io>
Tue, 22 Nov 2016 23:41:28 +0000 (00:41 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 25 Nov 2016 06:32:58 +0000 (07:32 +0100)
commit8a4e4420fb15b72ca80fd0524d01d691179dd2df
treeb6ca31fa39f853b14127eaef992332bc7af7f1cf
parent4ed1c9585d854e0deb8a234e8103d81e1f47228c
MEDIUM: log-format: Use standard HAProxy log system to report errors

The function log format emit its own error message using Alert(). This
patch replaces this behavior and uses the standard HAProxy error system
(with memprintf).

The benefits are:
 - cleaning the log system

 - the logformat can ignore the caller (actually the caller must set
   a flag designing the caller function).

 - Make the usage of the logformat function easy for future components.
include/proto/log.h
src/cfgparse.c
src/log.c
src/proto_http.c