aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorGabor X Toth <*@tg-x.net>2014-03-06 23:46:42 +0000
committerGabor X Toth <*@tg-x.net>2014-03-06 23:46:42 +0000
commita21beab58c1d2abc747359a98326f19aaad4e8cd (patch)
tree775f716fd782e44c4abddc92b3643675ca737667 /contrib
parent25ccd453b45a0f73008e414d6d4f8c34f6f8d779 (diff)
downloadgnunet-a21beab58c1d2abc747359a98326f19aaad4e8cd.tar.gz
gnunet-a21beab58c1d2abc747359a98326f19aaad4e8cd.zip
logread: more generic message type regexp
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 11baf2d86..26f809e54 100755
--- a/contrib/logread.pl
+++ b/contrib/logread.pl
@@ -98,9 +98,9 @@ while (<>)
98 s/\b(multicast|psyc|psycstore|social)\b/BLUE $1/ex; 98 s/\b(multicast|psyc|psycstore|social)\b/BLUE $1/ex;
99 99
100 # Add message type names 100 # Add message type names
101 s/(message(?:\s+part)?(?:\s+of)?\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)"/e; 103 CYAN " ($2)"/ei;
104 104
105 print; 105 print;
106} 106}