From: Fabian Keil Date: Fri, 12 Feb 2021 20:42:26 +0000 (+0100) Subject: privoxy-log-parser: Highlight: "Tag 'change-tor-socks-port' for client 127.0.0.1... X-Git-Tag: v_3_0_32~60 X-Git-Url: http://www.privoxy.org/gitweb/?a=commitdiff_plain;h=8c6a51f039a882bf7dc8cd88362d22f9a8d4682a;p=privoxy.git privoxy-log-parser: Highlight: "Tag 'change-tor-socks-port' for client 127.0.0.1 expired 1 seconds ago. Deleting it." --- diff --git a/tools/privoxy-log-parser.pl b/tools/privoxy-log-parser.pl index f87580b9..4d0ba2e7 100755 --- a/tools/privoxy-log-parser.pl +++ b/tools/privoxy-log-parser.pl @@ -1264,6 +1264,14 @@ sub handle_loglevel_tagging($) { $c =~ s@(?<=tag \')([^\']*)@$h{'tag'}$1$h{'Standard'}@; $c = highlight_matched_host($c, '[^\s]+(?=\.$)'); + } elsif ($c =~ /^Tag/) { + + # Tag 'change-tor-socks-port' for client 127.0.0.1 expired 1 seconds ago. Deleting it. + + $c =~ s@(?<=Tag \')([^\']*)@$h{'tag'}$1$h{'Standard'}@; + $c =~ s@(?<=expired )(\d+)@$h{'Number'}$1$h{'Standard'}@; + $c = highlight_matched_host($c, '(?<=client )[^\s]+'); + } elsif ($c =~ /^Client tag/) { # Client tag 'forward-directly' matches