privoxy-log-parser: Highlight: 'Skipped filter 'banners-by-size' after job number...
authorFabian Keil <fk@fabiankeil.de>
Tue, 8 Apr 2025 12:45:54 +0000 (14:45 +0200)
committerFabian Keil <fk@fabiankeil.de>
Wed, 23 Apr 2025 07:35:18 +0000 (09:35 +0200)
tools/privoxy-log-parser.pl

index 7ffc125..8bfb8a3 100755 (executable)
@@ -2231,6 +2231,13 @@ sub handle_loglevel_error($) {
 
         # The socks connection timed out after 60 seconds.
         $c =~ s@(?<=after )(\d+)@$h{'Number'}$1$h{'Standard'}@;
+
+    } elsif ($c =~ m/^Skipped filter /) {
+
+        # Skipped filter 'banners-by-size' after job number 1: match limit exceeded (-47)
+        $c =~ s@(?<=filter ')([^']+)@$h{'Filter'}$1$h{'Standard'}@;
+        $c =~ s@(?<=number )(\d+)@$h{'Number'}$1$h{'Standard'}@;
+        $c =~ s@(?<=exceeded \(-)(\d+)@$h{'Number'}$1$h{'Standard'}@;
     }
 
     # XXX: There are probably more messages that deserve highlighting.