]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: sink: Set the default max length for a message to BUFSIZE
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 15 Nov 2019 14:10:12 +0000 (15:10 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 15 Nov 2019 14:10:19 +0000 (15:10 +0100)
It was set to MAX_SYSLOG_LEN (1K). It is a bit short to print debug
traces. Especially when part of a buffers is dump. Now, the maximum length is
set to BUFSIZE (16K).

src/sink.c

index 1d30f632d12211b41f174fbf8a69e6486cb4be7a..72e17433ea15f3d1558ed22b3f829cdde7ec7a2e 100644 (file)
@@ -65,7 +65,7 @@ static struct sink *__sink_new(const char *name, const char *desc, enum sink_fmt
        /* set defaults for syslog ones */
        sink->syslog_facility = 0;
        sink->syslog_minlvl   = 0;
-       sink->maxlen = MAX_SYSLOG_LEN;
+       sink->maxlen = BUFSIZE;
        /* address will be filled by the caller if needed */
        sink->ctx.fd = -1;
        sink->ctx.dropped = 0;