privoxy-log-parser: Highlight: "Tagger 'http-method' didn't add tag 'POST': suppressed"
authorFabian Keil <fk@fabiankeil.de>
Tue, 8 Jul 2025 14:06:58 +0000 (16:06 +0200)
committerFabian Keil <fk@fabiankeil.de>
Thu, 17 Jul 2025 10:11:31 +0000 (12:11 +0200)
tools/privoxy-log-parser.pl

index 36cbed7..3f173a4 100755 (executable)
@@ -1262,6 +1262,15 @@ sub handle_loglevel_tagging($) {
         $c =~ s@(?<=added tag \')([^\']*)@$h{'tag'}$1$h{'Standard'}@;
         $c =~ s@(?<=Action bits )(updated)@$h{'action-bits-update'}$1$h{'Standard'}@;
 
+    } elsif ($c =~ /^Tagger \'([^\']*)\' didn\'t add tag \'([^\']*)\'/) {
+
+        # Tagger 'http-method' didn't add tag 'POST': suppressed
+        # Tagger 'revalidation' didn't add tag 'REVALIDATION-REQUEST'. Tag already present
+        # XXX: Save tag and tagger
+
+        $c =~ s@(?<=^Tagger \')([^\']*)@$h{'tag'}$1$h{'Standard'}@;
+        $c =~ s@(?<=didn['']t add tag \')([^\']*)@$h{'tagger'}$1$h{'Standard'}@;
+
     } elsif ($c =~ /^Enlisting tag/) {
 
         # Enlisting tag 'forward-directly' for client 127.0.0.1.