projects
/
privoxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
8c6a51f
)
privoxy-log-parser: Highlight: "Evaluating tag 'change-tor-socks-port' for client...
author
Fabian Keil
<fk@fabiankeil.de>
Fri, 12 Feb 2021 20:46:26 +0000
(21:46 +0100)
committer
Fabian Keil
<fk@fabiankeil.de>
Sun, 21 Feb 2021 15:09:20 +0000
(16:09 +0100)
tools/privoxy-log-parser.pl
patch
|
blob
|
history
diff --git
a/tools/privoxy-log-parser.pl
b/tools/privoxy-log-parser.pl
index
4d0ba2e
..
482edf9
100755
(executable)
--- a/
tools/privoxy-log-parser.pl
+++ b/
tools/privoxy-log-parser.pl
@@
-1272,6
+1272,14
@@
sub handle_loglevel_tagging($) {
$c =~ s@(?<=expired )(\d+)@$h{'Number'}$1$h{'Standard'}@;
$c = highlight_matched_host($c, '(?<=client )[^\s]+');
$c =~ s@(?<=expired )(\d+)@$h{'Number'}$1$h{'Standard'}@;
$c = highlight_matched_host($c, '(?<=client )[^\s]+');
+ } elsif ($c =~ /^Evaluating/) {
+
+ # Evaluating tag 'change-tor-socks-port' for client 127.0.0.1. End of life 1613162302.
+
+ $c =~ s@(?<=tag \')([^\']*)@$h{'tag'}$1$h{'Standard'}@;
+ $c = highlight_matched_host($c, '(?<=client )[^\s]+(?=\.)');
+ $c =~ s@(?<=life )(\d+)@$h{'Number'}$1$h{'Standard'}@;
+
} elsif ($c =~ /^Client tag/) {
# Client tag 'forward-directly' matches
} elsif ($c =~ /^Client tag/) {
# Client tag 'forward-directly' matches