mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-06 23:27:04 +02:00
CLEANUP: log: remove unnecessary trim in __do_send_log
Since both sink_write and fd_write_frag_line take the maxlen parameter as argument, there is no added value for the trim before passing the msg parameter to those functions.
This commit is contained in:
parent
8e6339aa29
commit
7a71801af6
@ -1747,7 +1747,6 @@ static inline void __do_send_log(struct logsrv *logsrv, int nblogger, int level,
|
||||
size_t maxlen = logsrv->maxlen;
|
||||
|
||||
msg = ist2(message, size);
|
||||
msg = isttrim(msg, logsrv->maxlen);
|
||||
|
||||
/* make room for the final '\n' which may be forcefully inserted
|
||||
* by tcp forwarder applet (sink_forward_io_handler)
|
||||
@ -1760,7 +1759,6 @@ static inline void __do_send_log(struct logsrv *logsrv, int nblogger, int level,
|
||||
struct ist msg;
|
||||
|
||||
msg = ist2(message, size);
|
||||
msg = isttrim(msg, logsrv->maxlen);
|
||||
|
||||
sent = fd_write_frag_line(*plogfd, logsrv->maxlen, msg_header, nbelem, &msg, 1, 1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user