From: Fabian Keil <fk@fabiankeil.de>
Date: Fri, 14 Jan 2011 19:47:53 +0000 (+0000)
Subject: Accept and highlight: File modification detected: /usr/local/etc/privoxy/user-agent... 
X-Git-Tag: v_3_0_18~354
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/@default-cgi@/static/faq/@default-cgi@show-url-info?a=commitdiff_plain;h=8f32841e480e38778f78445010edadd137a445db;p=privoxy.git

Accept and highlight: File modification detected: /usr/local/etc/privoxy/user-agent.action
---

diff --git a/tools/privoxy-log-parser.pl b/tools/privoxy-log-parser.pl
index a61b037b..5bb6bfd2 100755
--- a/tools/privoxy-log-parser.pl
+++ b/tools/privoxy-log-parser.pl
@@ -8,7 +8,7 @@
 #
 # http://www.fabiankeil.de/sourcecode/privoxy-log-parser/
 #
-# $Id: privoxy-log-parser.pl,v 1.108 2010/12/11 15:44:55 fabiankeil Exp $
+# $Id: privoxy-log-parser.pl,v 1.109 2011/01/09 12:09:21 fabiankeil Exp $
 #
 # TODO:
 #       - LOG_LEVEL_CGI, LOG_LEVEL_ERROR, LOG_LEVEL_WRITE content highlighting
@@ -1771,6 +1771,11 @@ sub handle_loglevel_info ($) {
         $c =~ s@(?<=Needed: )(\d+)@$h{'Number'}$1$h{'Standard'}@;
         $c =~ s@(?<=Limit: )(\d+)@$h{'Number'}$1$h{'Standard'}@;
 
+    } elsif ($c =~ m/^File modification detected: /) {
+
+        # File modification detected: /usr/local/etc/privoxy/user-agent.action
+        $c =~ s@(?<= detected: )(.*)$@$h{'file'}$1$h{'Standard'}@;
+
     } elsif ($c =~ m/^No logfile configured/ or
              $c =~ m/^Malformerd HTTP headers detected and MS IIS5 hack enabled/ or
              $c =~ m/^Invalid \"chunked\" transfer/ or