X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=tools%2Fprivoxy-log-parser.pl;h=bfc489214dd43022dc7bd168e96a82a6bd539a32;hp=d7617f7fd6ec8ef6186a27573676a8b8cf320c1e;hb=f57501059dd836a1066b73233c088470dee0777f;hpb=a3449b7cd5c1215848814d37d1fc3553aa563dcd;ds=sidebyside diff --git a/tools/privoxy-log-parser.pl b/tools/privoxy-log-parser.pl index d7617f7f..bfc48921 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.116 2008/10/11 10:36:19 fk Exp $ +# $Id: privoxy-log-parser.pl,v 1.117 2008/10/18 16:22:45 fk Exp $ # # TODO: # - LOG_LEVEL_CGI, LOG_LEVEL_ERROR, LOG_LEVEL_WRITE content highlighting @@ -1454,6 +1454,12 @@ sub handle_loglevel_connect ($) { $c = higlight_matched_host($c, '(?<=for )[^\s]+'); $c =~ s@(?<=in slot )(\d+)@$h{'Number'}$1$h{'Standard'}@; + } elsif ($c =~ m/^The connection to/) { + + # The connection to www.privoxy.org:80 in slot 0 timed out. Closing. + $c = higlight_matched_host($c, '(?<=connection to )[^\s]+'); + $c =~ s@(?<=in slot )(\d+)@$h{'Number'}$1$h{'Standard'}@; + } elsif ($c =~ m/^Initialized/) { # Initialized 20 socket slots. @@ -1467,6 +1473,10 @@ sub handle_loglevel_connect ($) { $c =~ s@(?<=Actual content length: )(\d+)@$h{'Number'}$1$h{'Standard'}@; $c =~ s@(?<=received: )(\d+)@$h{'Number'}$1$h{'Standard'}@; + } elsif ($c =~ m/^Looks like we reached/) { + + # Looks like we reached the end of the last chunk. We better stop reading. + } else { found_unknown_content($c);