aboutsummaryrefslogtreecommitdiff
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)
downloadgnunet-0b49a42584ffd952f83eec54800f2c23c8066d97.tar.gz
gnunet-0b49a42584ffd952f83eec54800f2c23c8066d97.zip
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 (<>)
95 95
96 # Service names 96 # Service names
97 # TODO: might read the list from $GNUNET_PREFIX/libexec/gnunet/ 97 # TODO: might read the list from $GNUNET_PREFIX/libexec/gnunet/
98 s/\b(multicast|psyc|psycstore|social)\b/BLUE $1/ex; 98 s/\b(multicast|psyc|psycstore|social)\b/BLUE $1/gex;
99 99
100 # Add message type names 100 # Add message type names
101 s/(\s+type\s+)(\d+)/ 101 s/(\s+type\s+)(\d+)/
102 $1 . BRIGHT_CYAN (exists $msgtypes{$2} ? $msgtypes{$2} : 'UNKNOWN') . 102 $1 . BRIGHT_CYAN (exists $msgtypes{$2} ? $msgtypes{$2} : 'UNKNOWN') .
103 CYAN " ($2)"/ei; 103 CYAN " ($2)"/gei;
104 104
105 print; 105 print;
106} 106}