From: Fabian Keil <fk@fabiankeil.de>
Date: Tue, 9 Jun 2020 06:26:29 +0000 (+0200)
Subject: privoxy-log-parser.pl: Highlight: "Waiting for the next client connection. Currently... 
X-Git-Tag: v_3_0_29~282
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/faq/@default-cgi@/user-manual/static/diff?a=commitdiff_plain;h=e42058e7c7ed0df990f2056ce40caee05159a76c;p=privoxy.git

privoxy-log-parser.pl: Highlight: "Waiting for the next client connection. Currently active threads: 30"
---

diff --git a/tools/privoxy-log-parser.pl b/tools/privoxy-log-parser.pl
index e3d1aa6a..bc1ab04b 100755
--- a/tools/privoxy-log-parser.pl
+++ b/tools/privoxy-log-parser.pl
@@ -1759,6 +1759,11 @@ sub handle_loglevel_connect($) {
         # Forwarded the last 1954 bytes
         $c =~ s@(?<=the last )(\d+)@$h{'Number'}$1$h{'Standard'}@;
 
+    } elsif ($c =~ m/^Waiting for the next client connection. Currently active threads:/) {
+
+        # Waiting for the next client connection. Currently active threads: 30
+        $c =~ s@(?<=threads: )(\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