fixed accesslog.use-syslog in a conditional and the caching of the

accesslog for files (fixes #1064)


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1729 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.14
Jan Kneschke 16 years ago
parent 7d4086647a
commit 3c5c8ef54d
  1. 5
      src/mod_accesslog.c

@ -605,6 +605,9 @@ static int mod_accesslog_patch_connection(server *srv, connection *con, plugin_d
PATCH(parsed_format);
} else if (buffer_is_equal_string(du->key, CONST_STR_LEN("accesslog.use-syslog"))) {
PATCH(use_syslog);
PATCH(last_generated_accesslog_ts_ptr);
PATCH(access_logbuffer);
PATCH(ts_accesslog_str);
}
}
}
@ -813,7 +816,7 @@ REQUESTDONE_FUNC(log_access_write) {
BUFFER_APPEND_STRING_CONST(b, "\n");
if (p->conf.use_syslog || /* syslog doesn't cache */
(p->conf.access_logfile->used && p->conf.access_logfile->ptr[0] != '|') || /* pipes don't cache */
(p->conf.access_logfile->used && p->conf.access_logfile->ptr[0] == '|') || /* pipes don't cache */
newts ||
b->used > BUFFER_MAX_REUSE_SIZE) {
if (p->conf.use_syslog) {

Loading…
Cancel
Save