From ed4b19ee06f114648331fabd775c25c290dff481 Mon Sep 17 00:00:00 2001 From: Gabor X Toth <*@tg-x.net> Date: Sat, 9 Nov 2013 23:12:16 +0000 Subject: logread warning fix --- contrib/logread.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'contrib') 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 (<>) s/\b(multicast|psyc|psycstore|social)\b/BLUE $1/ex; # Add message type names - s/(message(?:\s+of)?\s+type\s+)(\d+)/$1 . BRIGHT_CYAN "$msgtypes{$2}" . CYAN " ($2)"/e; + s/(message(?:\s+of)?\s+type\s+)(\d+)/ + $1 . BRIGHT_CYAN (exists $msgtypes{$2} ? $msgtypes{$2} : 'UNKNOWN') . + CYAN " ($2)"/e; print; } -- cgit v1.2.3