aboutsummaryrefslogtreecommitdiff
path: root/contrib/logread.pl
diff options
context:
space:
mode:
authorGabor X Toth <*@tg-x.net>2013-11-09 23:12:16 +0000
committerGabor X Toth <*@tg-x.net>2013-11-09 23:12:16 +0000
commited4b19ee06f114648331fabd775c25c290dff481 (patch)
treee360912a757bf1dd6c755c56e4381c06c8cba8f5 /contrib/logread.pl
parent24fb6b6a3a9aef7f0338fd960e4ff168b2c1fd80 (diff)
downloadgnunet-ed4b19ee06f114648331fabd775c25c290dff481.tar.gz
gnunet-ed4b19ee06f114648331fabd775c25c290dff481.zip
logread warning fix
Diffstat (limited to 'contrib/logread.pl')
-rwxr-xr-xcontrib/logread.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/logread.pl b/contrib/logread.pl
index 8602a83e1..a72f7232d 100755
--- a/contrib/logread.pl
+++ b/contrib/logread.pl
@@ -44,7 +44,9 @@ while (<>)
44 s/\b(multicast|psyc|psycstore|social)\b/BLUE $1/ex; 44 s/\b(multicast|psyc|psycstore|social)\b/BLUE $1/ex;
45 45
46 # Add message type names 46 # Add message type names
47 s/(message(?:\s+of)?\s+type\s+)(\d+)/$1 . BRIGHT_CYAN "$msgtypes{$2}" . CYAN " ($2)"/e; 47 s/(message(?:\s+of)?\s+type\s+)(\d+)/
48 $1 . BRIGHT_CYAN (exists $msgtypes{$2} ? $msgtypes{$2} : 'UNKNOWN') .
49 CYAN " ($2)"/e;
48 50
49 print; 51 print;
50} 52}