diff options
author | Gabor X Toth <*@tg-x.net> | 2014-05-22 23:05:34 +0000 |
---|---|---|
committer | Gabor X Toth <*@tg-x.net> | 2014-05-22 23:05:34 +0000 |
commit | e045bcb4a98fac100c5cbdbc7a97b6a98aa4039e (patch) | |
tree | 9d8e2f6bef2e7f744de5b902b44e714c7a8f3a14 | |
parent | a7100389deab562e67d22ff68961b68a62341aec (diff) | |
download | gnunet-e045bcb4a98fac100c5cbdbc7a97b6a98aa4039e.tar.gz gnunet-e045bcb4a98fac100c5cbdbc7a97b6a98aa4039e.zip |
logread-ipc colouring
-rwxr-xr-x | contrib/logread.pl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/logread.pl b/contrib/logread.pl index 14332352e..773a5ff93 100755 --- a/contrib/logread.pl +++ b/contrib/logread.pl | |||
@@ -102,6 +102,9 @@ while (<>) | |||
102 | $1 . BRIGHT_CYAN (exists $msgtypes{$2} ? $msgtypes{$2} : 'UNKNOWN') . | 102 | $1 . BRIGHT_CYAN (exists $msgtypes{$2} ? $msgtypes{$2} : 'UNKNOWN') . |
103 | CYAN " ($2)"/gei; | 103 | CYAN " ($2)"/gei; |
104 | 104 | ||
105 | # logread-ipc output | ||
106 | s/(\s+)([A-Z_]+)( \(\d+\))$/$1 . BRIGHT_CYAN $2 . CYAN $3/e; | ||
107 | |||
105 | print; | 108 | print; |
106 | } | 109 | } |
107 | 110 | ||