summaryrefslogtreecommitdiff
path: root/contrib
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
parent24fb6b6a3a9aef7f0338fd960e4ff168b2c1fd80 (diff)
logread warning fix
Diffstat (limited to 'contrib')
-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 (<>)
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;
}