diff options
author | Jan Kneschke <jan@kneschke.de> | 2005-08-17 14:42:09 +0000 |
---|---|---|
committer | Jan Kneschke <jan@kneschke.de> | 2005-08-17 14:42:09 +0000 |
commit | df688f7de05c51f8d708b521e8872520a47274b7 (patch) | |
tree | a23aa0d3bb42cdba82bbc2baec53641a4c8da4bb | |
parent | e9165caae8da702299b9f3aae4406c40a7285d90 (diff) | |
download | lighttpd-git-df688f7de05c51f8d708b521e8872520a47274b7.tar.gz |
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
-rw-r--r-- | src/mod_accesslog.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mod_accesslog.c b/src/mod_accesslog.c index 03db95d8..9a744c90 100644 --- a/src/mod_accesslog.c +++ b/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); |