Browse Source

pipe and syslog need each log-entry by itself

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@564 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.2
Jan Kneschke 17 years ago
parent
commit
df688f7de0
  1. 7
      src/mod_accesslog.c

7
src/mod_accesslog.c

@ -794,8 +794,11 @@ REQUESTDONE_FUNC(log_access_write) {
}
BUFFER_APPEND_STRING_CONST(p->conf.access_logbuffer, "\n");
if (newts || p->conf.access_logbuffer->used > BUFFER_MAX_REUSE_SIZE) {
if (p->conf.use_syslog || /* syslog doesn't cache */
(p->conf.access_logfile->ptr[0] != '|') || /* pipes don't cache */
newts ||
p->conf.access_logbuffer->used > BUFFER_MAX_REUSE_SIZE) {
if (p->conf.use_syslog) {
#ifdef HAVE_SYSLOG_H
syslog(LOG_INFO, "%*s", p->conf.access_logbuffer->used - 1, p->conf.access_logbuffer->ptr);

Loading…
Cancel
Save