From: Fabian Keil <fk@fabiankeil.de>
Date: Sun, 17 Apr 2022 01:33:22 +0000 (+0200)
Subject: privoxy-log-parser: Highlight 'The socks connection timed out after 60 seconds.'
X-Git-Tag: v_3_0_34~134
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/faq/@protocol@@hostport@@path@?a=commitdiff_plain;h=c3b346083a90acd4dcdfc3881dbcc47a92d1a400;p=privoxy.git

privoxy-log-parser: Highlight 'The socks connection timed out after 60 seconds.'
---

diff --git a/tools/privoxy-log-parser.pl b/tools/privoxy-log-parser.pl
index 0b0a4dc0..9d5e6de0 100755
--- a/tools/privoxy-log-parser.pl
+++ b/tools/privoxy-log-parser.pl
@@ -2156,6 +2156,10 @@ sub handle_loglevel_error($) {
         $c =~ s@(?<=digested )(\d+)@$h{'Number'}$1$h{'Standard'}@;
         $c =~ s@(?<=of )(\d+)@$h{'Number'}$1$h{'Standard'}@;
 
+    } elsif ($c =~ m/^The socks connection timed out after/) {
+
+        # The socks connection timed out after 60 seconds.
+        $c =~ s@(?<=after )(\d+)@$h{'Number'}$1$h{'Standard'}@;
     }
 
     # XXX: There are probably more messages that deserve highlighting.