From: Fabian Keil Date: Thu, 10 Sep 2009 15:03:20 +0000 (+0000) Subject: Highlight the assumed latency, too. X-Git-Tag: v_3_0_15~65 X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=commitdiff_plain;h=7e074c16ee589ae96521cb2b4d19f3e8d9f1d665;hp=8f43cb153402efebb94c68eaa8f91a5e2ee657b1 Highlight the assumed latency, too. --- diff --git a/tools/privoxy-log-parser.pl b/tools/privoxy-log-parser.pl index 82aba290..30da9685 100755 --- a/tools/privoxy-log-parser.pl +++ b/tools/privoxy-log-parser.pl @@ -8,7 +8,7 @@ # # http://www.fabiankeil.de/sourcecode/privoxy-log-parser/ # -# $Id: privoxy-log-parser.pl,v 1.45 2009/08/20 15:43:56 fabiankeil Exp $ +# $Id: privoxy-log-parser.pl,v 1.46 2009/09/10 15:02:25 fabiankeil Exp $ # # TODO: # - LOG_LEVEL_CGI, LOG_LEVEL_ERROR, LOG_LEVEL_WRITE content highlighting @@ -1511,11 +1511,15 @@ sub handle_loglevel_connect ($) { } elsif ($c =~ m/^The connection to/) { # The connection to www.privoxy.org:80 in slot 6 timed out. Closing socket 19. Timeout is: 61. + # 3.0.15 and later: + # The connection to 1.bp.blogspot.com:80 in slot 0 timed out. Closing socket 5.\ + # Timeout is: 1. Assumed latency: 4. # The connection to 10.0.0.1:80 in slot 0 is no longer usable. Closing socket 4. $c = highlight_matched_host($c, '(?<=connection to )[^\s]+'); $c =~ s@(?<=in slot )(\d+)@$h{'Number'}$1$h{'Standard'}@; $c =~ s@(?<=Closing socket )(\d+)@$h{'Number'}$1$h{'Standard'}@; $c =~ s@(?<=Timeout is: )(\d+)@$h{'Number'}$1$h{'Standard'}@; + $c =~ s@(?<=Assumed latency: )(\d+)@$h{'Number'}$1$h{'Standard'}@; } elsif ($c =~ m/^Waiting for \d/) {