Browse Source

don't die if accesslog file is not set

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

4
src/mod_accesslog.c

@ -330,8 +330,6 @@ FREE_FUNC(mod_accesslog_free) {
if (!s) continue;
if (!s) continue;
if (s->access_logbuffer->used) {
if (s->use_syslog) {
# ifdef HAVE_SYSLOG_H
@ -796,7 +794,7 @@ REQUESTDONE_FUNC(log_access_write) {
BUFFER_APPEND_STRING_CONST(p->conf.access_logbuffer, "\n");
if (p->conf.use_syslog || /* syslog doesn't cache */
(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 ||
p->conf.access_logbuffer->used > BUFFER_MAX_REUSE_SIZE) {
if (p->conf.use_syslog) {

Loading…
Cancel
Save