privoxy-log-parser: Highlight 'Forwarding 157 bytes of encrypted request body.'
authorFabian Keil <fk@fabiankeil.de>
Thu, 21 Apr 2022 10:09:17 +0000 (12:09 +0200)
committerFabian Keil <fk@fabiankeil.de>
Fri, 6 May 2022 10:40:01 +0000 (12:40 +0200)
tools/privoxy-log-parser.pl

index 257894c..0dfdada 100755 (executable)
@@ -1915,6 +1915,11 @@ sub handle_loglevel_connect($) {
         # Prepared to read up to 157 bytes of encrypted request body from the client.
         $c =~ s@(?<=up to )(\d+)@$h{'Number'}$1$h{'Standard'}@;
 
         # Prepared to read up to 157 bytes of encrypted request body from the client.
         $c =~ s@(?<=up to )(\d+)@$h{'Number'}$1$h{'Standard'}@;
 
+    } elsif ($c =~ m/^Forwarding \d+ bytes /) {
+
+        # Forwarding 157 bytes of encrypted request body.
+        $c =~ s@(?<=Forwarding )(\d+)@$h{'Number'}$1$h{'Standard'}@;
+
     } elsif ($c =~ m/^Looks like we / or
              $c =~ m/^Unsetting keep-alive flag/ or
              $c =~ m/^No connections to wait/ or
     } elsif ($c =~ m/^Looks like we / or
              $c =~ m/^Unsetting keep-alive flag/ or
              $c =~ m/^No connections to wait/ or