mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-07 15:47:01 +02:00
BUG/MINOR: log: Preserve message facility when the log target is a ring buffer
When a ring is used as log target, the original facility, if any, must be preserved. The default facility must only be used if there no facility was found in the incoming log message. This patch should fix the issue #1901. It must be backported as far as 2.4.
This commit is contained in:
parent
9e3026c58d
commit
cc640e851a
@ -1684,7 +1684,7 @@ static inline void __do_send_log(struct logsrv *logsrv, int nblogger, int level,
|
||||
msg = ist2(message, size);
|
||||
msg = isttrim(msg, logsrv->maxlen);
|
||||
|
||||
sent = sink_write(logsrv->sink, &msg, 1, level, logsrv->facility, metadata);
|
||||
sent = sink_write(logsrv->sink, &msg, 1, level, facility, metadata);
|
||||
}
|
||||
else if (logsrv->addr.ss_family == AF_CUST_EXISTING_FD) {
|
||||
struct ist msg;
|
||||
|
Loading…
Reference in New Issue
Block a user