From: Fabian Keil Date: Thu, 20 Aug 2009 15:43:56 +0000 (+0000) Subject: Accept and highlight: Reduced expected bytes to 0 to account for the 1542 ones we... X-Git-Tag: v_3_0_15~90 X-Git-Url: http://www.privoxy.org/gitweb/?a=commitdiff_plain;h=1648bac7901c7d57becfff790bc2bafbc1d67139;p=privoxy.git Accept and highlight: Reduced expected bytes to 0 to account for the 1542 ones we already got. --- diff --git a/tools/privoxy-log-parser.pl b/tools/privoxy-log-parser.pl index a9468e5a..1af436b4 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.43 2009/08/20 14:18:27 fabiankeil Exp $ +# $Id: privoxy-log-parser.pl,v 1.167 2009/08/20 15:42:57 fk Exp $ # # TODO: # - LOG_LEVEL_CGI, LOG_LEVEL_ERROR, LOG_LEVEL_WRITE content highlighting @@ -1594,6 +1594,12 @@ sub handle_loglevel_connect ($) { $c =~ s@(?<=server socket )(\d+)@$h{'Number'}$1$h{'Standard'}@; + } elsif ($c =~ m/^Reduced expected bytes to /) { + + # Reduced expected bytes to 0 to account for the 1542 ones we already got. + $c =~ s@(?<=bytes to )(\d+)@$h{'Number'}$1$h{'Standard'}@; + $c =~ s@(?<=for the )(\d+)@$h{'Number'}$1$h{'Standard'}@; + } elsif ($c =~ m/^Looks like we rea/ or $c =~ m/^Unsetting keep-alive flag/ or $c =~ m/^No connections to wait/ or