summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorGabor X Toth <*@tg-x.net>2014-05-06 10:26:14 +0000
committerGabor X Toth <*@tg-x.net>2014-05-06 10:26:14 +0000
commit0b49a42584ffd952f83eec54800f2c23c8066d97 (patch)
treec96a075c8a33cda00b5c4570826be9fdd81c1895 /contrib
parent8070e8df94ce4c01b07044f6db0ec914ebdc87a6 (diff)
logread: use global matching for colouring
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/logread.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/logread.pl b/contrib/logread.pl
index 26f809e54..14332352e 100755
--- a/contrib/logread.pl
+++ b/contrib/logread.pl
@@ -95,12 +95,12 @@ while (<>)
# Service names
# TODO: might read the list from $GNUNET_PREFIX/libexec/gnunet/
- s/\b(multicast|psyc|psycstore|social)\b/BLUE $1/ex;
+ s/\b(multicast|psyc|psycstore|social)\b/BLUE $1/gex;
# Add message type names
s/(\s+type\s+)(\d+)/
$1 . BRIGHT_CYAN (exists $msgtypes{$2} ? $msgtypes{$2} : 'UNKNOWN') .
- CYAN " ($2)"/ei;
+ CYAN " ($2)"/gei;
print;
}