projects
/
privoxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b141500
)
privoxy-log-parser: Highlight: "Tag 'change-tor-socks-port' for client 127.0.0.1...
author
Fabian Keil
<fk@fabiankeil.de>
Fri, 12 Feb 2021 20:42:26 +0000
(21:42 +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
f87580b
..
4d0ba2e
100755
(executable)
--- 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]+(?=\.$)');
$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
} elsif ($c =~ /^Client tag/) {
# Client tag 'forward-directly' matches