X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=tools%2Fprivoxy-log-parser.pl;h=5959b42d9f2f13d84a4e6388d9d5d746f90677ce;hp=bee56c718ea006be6eac5e39c4164b0daf0ec707;hb=f2c90ae3532f36348405ee1f55266246d502302b;hpb=0ffb274ecaed186a6f58031a4627135516605963 diff --git a/tools/privoxy-log-parser.pl b/tools/privoxy-log-parser.pl index bee56c71..5959b42d 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.150 2012/12/24 15:37:39 fabiankeil Exp $ +# $Id: privoxy-log-parser.pl,v 1.153 2013/01/13 15:38:35 fabiankeil Exp $ # # TODO: # - LOG_LEVEL_CGI, LOG_LEVEL_ERROR, LOG_LEVEL_WRITE content highlighting @@ -916,6 +916,7 @@ sub handle_loglevel_header ($) { or $c =~ m/^Merged multiple header lines to:/ or $c =~ m/^Added header: / or $c =~ m/^Enlisting (?:sorted|left-over) header/ + or $c =~ m/^Multiple Content-Type headers detected. Removing and ignoring: Content-Type:/ ) { # XXX: Some of these may need highlighting @@ -966,6 +967,7 @@ sub handle_loglevel_header ($) { # Added header: Content-Encoding: deflate # Enlisting sorted header User-Agent: Mozilla/5.0 (X11; SunOS i86pc; rv:10.0.3) Gecko/20100101 Firefox/10.0.3 # Enlisting left-over header Connection: close + # Multiple Content-Type headers detected. Removing and ignoring: Content-Type: text/html } elsif ($c =~ m/^scanning headers for:/) { @@ -1721,9 +1723,12 @@ sub handle_loglevel_connect ($) { $c =~ s@(?<=Drained )(\d+)@$h{'Number'}$1$h{'Standard'}@; $c =~ s@(?<=socket )(\d+)@$h{'Number'}$1$h{'Standard'}@; - } elsif ($c =~ m/^Tainting client socket/) { + } elsif ($c =~ m/^Tainting client socket/ or + $c =~ m/^Failed to shutdown socket/) { # Tainting client socket 7 due to unread data. + # Failed to shutdown socket 11: Connection reset by peer + $c =~ s@(?<=socket )(\d+)@$h{'Number'}$1$h{'Standard'}@; } elsif ($c =~ m/^Shifting \d+ pipelined bytes/) { @@ -1803,10 +1808,12 @@ sub handle_loglevel_info ($) { # Reloading configuration file '/usr/local/etc/privoxy/config' $c =~ s@(?<=loading configuration file \')([^\']*)@$h{'file'}$1$h{'Standard'}@; - } elsif ($c =~ m/^Loading (actions|filter) file: /) { + } elsif ($c =~ m/^Loading (actions|filter|trust) file: /) { # Loading actions file: /usr/local/etc/privoxy/default.action # Loading filter file: /usr/local/etc/privoxy/default.filter + # Loading trust file: /usr/local/etc/privoxy/trust + $c =~ s@(?<= file: )(.*)$@$h{'file'}$1$h{'Standard'}@; } elsif ($c =~ m/^exiting by signal/) {