From: Fabian Keil Date: Tue, 4 Sep 2012 08:39:30 +0000 (+0000) Subject: Stop suppressing messages about accepted client connections and highlight them properly X-Git-Tag: v_3_0_20~279 X-Git-Url: http://www.privoxy.org/gitweb/?a=commitdiff_plain;h=6cbdede53d5f4ea3067fb084a7293841541b7a2a;p=privoxy.git Stop suppressing messages about accepted client connections and highlight them properly --- diff --git a/tools/privoxy-log-parser.pl b/tools/privoxy-log-parser.pl index e61eb93c..157c21b7 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.135 2012/07/27 17:40:31 fabiankeil Exp $ +# $Id: privoxy-log-parser.pl,v 1.136 2012/07/27 17:42:39 fabiankeil Exp $ # # TODO: # - LOG_LEVEL_CGI, LOG_LEVEL_ERROR, LOG_LEVEL_WRITE content highlighting @@ -70,7 +70,6 @@ use constant { SHOW_FILTER_READIN_IN => 0, SUPPRESS_EMPTY_LINES => 1, SUPPRESS_SUCCESSFUL_CONNECTIONS => 1, - SUPPRESS_ACCEPTED_CONNECTIONS => 1, SUPPRESS_GIF_NOT_CHANGED => 1, SUPPRESS_NEED_TO_DE_CHUNK_FIRST => 1, @@ -1426,11 +1425,11 @@ sub handle_loglevel_connect ($) { } elsif ($c =~ m/^accepted connection from .*/ or $c =~ m/^OK/) { - # accepted connection from 10.0.0.1 + # accepted connection from 10.0.0.1 on socket 5 # Privoxy 3.0.6 and earlier just say: # OK - return '' if SUPPRESS_ACCEPTED_CONNECTIONS; - $c = highlight_matched_host($c, '(?<=connection from ).*'); + $c = highlight_matched_host($c, '(?<=connection from )[^ ]*'); + $c = highlight_matched_pattern($c, 'Number', '(?<=socket )\d+'); } elsif ($c =~ m/^Closing client socket/) {