You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by tr...@apache.org on 2012/10/18 17:55:47 UTC
svn commit: r1399708 - in /httpd/httpd/trunk: CHANGES server/log.c
Author: trawick
Date: Thu Oct 18 15:55:46 2012
New Revision: 1399708
URL: http://svn.apache.org/viewvc?rev=1399708&view=rev
Log:
only write the first len chars to syslog, as the buffer may have additional
text added speculatively
Modified:
httpd/httpd/trunk/CHANGES
httpd/httpd/trunk/server/log.c
Modified: httpd/httpd/trunk/CHANGES
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/CHANGES?rev=1399708&r1=1399707&r2=1399708&view=diff
==============================================================================
--- httpd/httpd/trunk/CHANGES [utf-8] (original)
+++ httpd/httpd/trunk/CHANGES [utf-8] Thu Oct 18 15:55:46 2012
@@ -1,6 +1,9 @@
-*- coding: utf-8 -*-
Changes with Apache 2.5.0
+ *) syslog logging: Remove stray ", referer" at the end of some messages.
+ [Jeff Trawick]
+
*) configure: Fix processing of --disable-FEATURE for various features.
[Jeff Trawick]
Modified: httpd/httpd/trunk/server/log.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/log.c?rev=1399708&r1=1399707&r2=1399708&view=diff
==============================================================================
--- httpd/httpd/trunk/server/log.c (original)
+++ httpd/httpd/trunk/server/log.c Thu Oct 18 15:55:46 2012
@@ -1088,7 +1088,8 @@ static void write_logline(char *errstr,
}
#ifdef HAVE_SYSLOG
else {
- syslog(level < LOG_PRIMASK ? level : APLOG_DEBUG, "%s", errstr);
+ syslog(level < LOG_PRIMASK ? level : APLOG_DEBUG, "%.*s",
+ (int)len, errstr);
}
#endif
}