From 1648bac7901c7d57becfff790bc2bafbc1d67139 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Thu, 20 Aug 2009 15:43:56 +0000 Subject: [PATCH] Accept and highlight: Reduced expected bytes to 0 to account for the 1542 ones we already got. --- tools/privoxy-log-parser.pl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 -- 2.39.2