X-Git-Url: http://www.privoxy.org/gitweb/?a=blobdiff_plain;f=tools%2Fprivoxy-log-parser.pl;h=0807186dec73368522448264765c049cccf64f48;hb=89109daf604e0df9355fc49ae82e26baf1a47da0;hp=fa69bd76ec0358c14c81240ab41eeb6f1997e1bd;hpb=287b4fa8824336baf03b0f5632d878d1b55aeddc;p=privoxy.git diff --git a/tools/privoxy-log-parser.pl b/tools/privoxy-log-parser.pl index fa69bd76..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.118 2011/06/23 14:02:02 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/) { @@ -2367,8 +2368,8 @@ sub get_cli_options () { 'accept-unknown-messages' => \$cli_options{'accept-unknown-messages'}, 'statistics' => \$cli_options{'statistics'}, 'unbreak-lines-only' => \$cli_options{'unbreak-lines-only'}, - 'url-statistics-threshold=s'=> \$cli_options{'url-statistics-threshold'}, - 'host-statistics-threshold=s'=> \$cli_options{'host-statistics-threshold'}, + 'url-statistics-threshold=i'=> \$cli_options{'url-statistics-threshold'}, + 'host-statistics-threshold=i'=> \$cli_options{'host-statistics-threshold'}, 'version' => sub { VersionMessage && exit(0) }, 'help' => \&help, ) or exit(1);