MINOR: sink: Set the default max length for a message to BUFSIZE

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).
This commit is contained in:
Christopher Faulet 2019-11-15 15:10:12 +01:00
parent 466080da0e
commit a63a5c2c65
1 changed files with 1 additions and 1 deletions

View File

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