tags 688203 + patch
thanks

Hi,

logwatch-7.4.0+svn20120502rev103/debian/patches/0007-fix-http_rc_detail_rep.patch
attached, “should” fix the issue.

bye,
//mirabilos
-- 
tarent solutions GmbH
Rochusstraße 2-4, D-53123 Bonn • http://www.tarent.de/
Tel: +49 228 54881-393 • Fax: +49 228 54881-314
HRB 5168 (AG Bonn) • USt-ID (VAT): DE122264941
Geschäftsführer: Boris Esser, Sebastian Mancke
Description: Unbreak and document http_rc_detail_rep
 The http_rc_detail_rep facility was never documented and does
 not work anyway because it uses a hyphen-minus in an environment
 variable which is not allowed syntax in many environments.
Author: Thorsten Glaser <t.gla...@tarent.de>
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=688203
Last-Update: 2012-09-20

Index: logwatch-7.4.0+svn20120502rev103/conf/services/http.conf
===================================================================
--- logwatch-7.4.0+svn20120502rev103.orig/conf/services/http.conf	2011-08-13 11:37:02.000000000 +0200
+++ logwatch-7.4.0+svn20120502rev103/conf/services/http.conf	2012-09-20 11:04:46.000000000 +0200
@@ -68,5 +68,13 @@
 # To display all user accesses except "Unauthorized":
 # $HTTP_USER_DISPLAY = "$field{http_rc} != 401"
 
+# To raise the needed level of detail for one or more specific
+# error codes to display a summary instead of listing each
+# occurrence, set a variable like the following ones:
+# Raise 403 codes to detail level High
+#$http_rc_detail_rep_403 = 10
+# Always show only summary for 404 codes
+#$http_rc_detail_rep_404 = 20
+
 
 # vi: shiftwidth=3 tabstop=3 et
Index: logwatch-7.4.0+svn20120502rev103/scripts/services/http
===================================================================
--- logwatch-7.4.0+svn20120502rev103.orig/scripts/services/http	2012-05-04 20:42:37.000000000 +0200
+++ logwatch-7.4.0+svn20120502rev103/scripts/services/http	2012-09-20 11:04:47.000000000 +0200
@@ -735,7 +735,7 @@
       if (not defined $StatusCode{$code}) {
          $StatusCode{$code} = "\(undefined\)";
       }
-      if( ($ENV{"http_rc_detail_rep-$code"} || $detail) > $detail ) {
+      if( ($ENV{"http_rc_detail_rep_$code"} || $detail) > $detail ) {
       # only display summary for this code
          my $t = 0;
          my $u = 0;

Reply via email to