mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-05 06:42:33 -04: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
1 changed files with 0 additions and 2 deletions
|
|
@ -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 a new issue