>> diff --git a/src/log.c b/src/log.c >> index 234f83e2426f..af9c4c704e94 100644 >> --- a/src/log.c >> +++ b/src/log.c >> @@ -5759,7 +5759,8 @@ void syslog_fd_handler(int fd) >> >> prepare_log_message(buf->area, buf->data, &level, >> &facility, metadata, &message, &size); >> >> - parse_log_message(buf->area, buf->data, &level, >> &facility, metadata, &message, &size); >> + if (!(l->bind_conf->frontend->options_log & >> PR_OL_DONTPARSELOG)) > > I would rather have "struct proxy *frontend = strm_fe(s);" and use that > frontend pointer to access options instead of l->bind_conf->frontend. >
Forget about that remark, there is no stream from the UDP handler context.. my bad. However it would be cleaner to retrieve the frontend at the top of the function so that it may me used similarly to the syslog_io_handler() function using "frontend" pointer later in the function.