From: Fabian Keil <fk@fabiankeil.de>
Date: Sun, 17 Mar 2024 18:00:05 +0000 (+0100)
Subject: privoxy-log-parser: Highlight 'Keeping chunk offset at 0 despite flushing 31 bytes.'
X-Git-Tag: v_4_0_0~75
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/developer-manual/@default-cgi@send-stylesheet?a=commitdiff_plain;h=de207b7461b11dce70902251c5a1cdc111f773e9;p=privoxy.git

privoxy-log-parser: Highlight 'Keeping chunk offset at 0 despite flushing 31 bytes.'
---

diff --git a/tools/privoxy-log-parser.pl b/tools/privoxy-log-parser.pl
index 29b8e1e8..b499237e 100755
--- a/tools/privoxy-log-parser.pl
+++ b/tools/privoxy-log-parser.pl
@@ -1970,6 +1970,12 @@ sub handle_loglevel_connect($) {
         $c = highlight_matched_url($c, "(?<=error message for )[^ ]*");
         $c =~ s@(?<=client socket )(\d+)@$h{'Number'}$1$h{'Standard'}@;
 
+    } elsif ($c =~ m/^Keeping chunk offset at/) {
+
+        # Keeping chunk offset at 0 despite flushing 31 bytes.
+        $c =~ s@(?<=offset at )(\d+)@$h{'Number'}$1$h{'Standard'}@;
+        $c =~ s@(?<=flushing )(\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