commit ed4b19ee06f114648331fabd775c25c290dff481 parent 24fb6b6a3a9aef7f0338fd960e4ff168b2c1fd80 Author: Gabor X Toth <*@tg-x.net> Date: Sat, 9 Nov 2013 23:12:16 +0000 logread warning fix Diffstat:
| M | contrib/logread.pl | | | 4 | +++- |
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git 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; }