From: Fabian Keil <fk@fabiankeil.de>
Date: Fri, 22 Jan 2021 10:11:41 +0000 (+0100)
Subject: privoxy-log-parser: Higlight "Enlisting tag 'forward-directly' for client 127.0.0.1."
X-Git-Tag: v_3_0_30~35
X-Git-Url: http://www.privoxy.org/gitweb/@default-cgi@/static/@default-cgi@send-stylesheet?a=commitdiff_plain;h=8176914ad4c1bf8de88e82909ee9b1b25e1effa3;p=privoxy.git

privoxy-log-parser: Higlight "Enlisting tag 'forward-directly' for client 127.0.0.1."
---

diff --git a/tools/privoxy-log-parser.pl b/tools/privoxy-log-parser.pl
index 68bafcd0..564f187b 100755
--- a/tools/privoxy-log-parser.pl
+++ b/tools/privoxy-log-parser.pl
@@ -1245,7 +1245,16 @@ sub handle_loglevel_tagging($) {
         $c =~ s@(?<=^Tagger \')([^\']*)@$h{'tagger'}$1$h{'Standard'}@;
         $c =~ s@(?<=added tag \')([^\']*)@$h{'tag'}$1$h{'Standard'}@;
         $c =~ s@(?<=Action bits )(updated)@$h{'action-bits-update'}$1$h{'Standard'}@;
+
+    } elsif ($c =~ /^Enlisting tag/) {
+
+        # Enlisting tag 'forward-directly' for client 127.0.0.1.
+
+        $c =~ s@(?<=tag \')([^\']*)@$h{'tag'}$1$h{'Standard'}@;
+        $c = highlight_matched_host($c, '[^\s]+(?=\.$)');
+
     }
+
     return $c;
 }