From a252fd787f4a4f0d3d11d3e3050846fa9be8e3aa Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Thu, 18 Aug 2011 11:41:18 +0000 Subject: [PATCH] Also highlight the compression level, now that it is logged, too --- tools/privoxy-log-parser.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/privoxy-log-parser.pl b/tools/privoxy-log-parser.pl index bc6f46c0..0807186d 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.119 2011/06/23 14:02:28 fabiankeil Exp $ +# $Id: privoxy-log-parser.pl,v 1.120 2011/06/29 20:29:12 fabiankeil Exp $ # # TODO: # - LOG_LEVEL_CGI, LOG_LEVEL_ERROR, LOG_LEVEL_WRITE content highlighting @@ -1197,9 +1197,10 @@ sub handle_loglevel_re_filter ($) { } elsif ($c =~ m/^Compressed content from /) { - # Compressed content from 29258 to 8630 bytes. + # Compressed content from 29258 to 8630 bytes. Compression level: 3 $content =~ s@(?<=from )(\d+)@$h{'Number'}$1$h{'Standard'}@; $content =~ s@(?<=to )(\d+)@$h{'Number'}$1$h{'Standard'}@; + $content =~ s@(?<=level: )(\d+)@$h{'Number'}$1$h{'Standard'}@; } elsif ($c =~ m/^Reading in filter/) { -- 2.39.2