From: Fabian Keil <fk@fabiankeil.de>
Date: Thu, 21 Apr 2022 10:08:00 +0000 (+0200)
Subject: privoxy-log-parser: Highlight 'Prepared to read up to 157 bytes of encrypted request... 
X-Git-Tag: v_3_0_34~112
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/faq/@protocol@@hostport@@path@?a=commitdiff_plain;h=a2b34e4839a2ded6d35f73c1ebe0f56386139bd7;p=privoxy.git

privoxy-log-parser: Highlight 'Prepared to read up to 157 bytes of encrypted request body from the client.'
---

diff --git a/tools/privoxy-log-parser.pl b/tools/privoxy-log-parser.pl
index 9d5e6de0..257894c1 100755
--- a/tools/privoxy-log-parser.pl
+++ b/tools/privoxy-log-parser.pl
@@ -1910,6 +1910,11 @@ sub handle_loglevel_connect($) {
         $c =~ s@(?<=timeout )(\d+)@$h{'Number'}$1$h{'Standard'}@;
         $c = highlight_matched_url($c, "(?<=reached: ).*")
 
+    } elsif ($c =~ m/^Prepared to read up to /) {
+
+        # 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/^Looks like we / or
              $c =~ m/^Unsetting keep-alive flag/ or
              $c =~ m/^No connections to wait/ or