privoxy-log-parser: Highlight 'The socks connection timed out after 60 seconds.'
authorFabian Keil <fk@fabiankeil.de>
Sun, 17 Apr 2022 01:33:22 +0000 (03:33 +0200)
committerFabian Keil <fk@fabiankeil.de>
Sun, 17 Apr 2022 08:07:20 +0000 (10:07 +0200)
tools/privoxy-log-parser.pl

index 0b0a4dc..9d5e6de 100755 (executable)
@@ -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.