From 0b49a42584ffd952f83eec54800f2c23c8066d97 Mon Sep 17 00:00:00 2001 From: Gabor X Toth <*@tg-x.net> Date: Tue, 6 May 2014 10:26:14 +0000 Subject: logread: use global matching for colouring --- contrib/logread.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'contrib') 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; } -- cgit v1.2.3