Hello.
In squid-3.2.0.13-r11414 there is an issue with logging access log to
syslog: log level is not set correctly. Proposed patch is attached.
Sergey Naumov.
diff -uNr squid-3.2.0.13.orig/src/log/ModSyslog.cc squid-3.2.0.13/src/log/ModSyslog.cc
--- squid-3.2.0.13.orig/src/log/ModSyslog.cc 2011-11-08 11:23:14.425157687 +0400
+++ squid-3.2.0.13/src/log/ModSyslog.cc 2011-11-15 10:59:40.784414198 +0400
@@ -170,7 +170,7 @@
l_syslog_t *ll = static_cast<l_syslog_t*>(xcalloc(1, sizeof(*ll)));
lf->data = ll;
- ll->syslog_priority = LOG_INFO;
+ ll->syslog_priority = 0;
if (path[6] != '\0') {
char *priority = xstrdup(path);
@@ -183,9 +183,9 @@
}
ll->syslog_priority |= syslog_ntoa(priority);
xfree(priority);
- if ((ll->syslog_priority & PRIORITY_MASK) == 0)
- ll->syslog_priority |= LOG_INFO;
}
+ if ((ll->syslog_priority & PRIORITY_MASK) == 0)
+ ll->syslog_priority |= LOG_INFO;
return 1;
}