diff options
author | tg(x) <*@tg-x.net> | 2017-02-24 20:10:42 +0100 |
---|---|---|
committer | tg(x) <*@tg-x.net> | 2017-02-24 20:10:42 +0100 |
commit | cb1165ecfc5c89c22aa4a6fffb72e27e0bde43a3 (patch) | |
tree | 401701a61ae8245f212364df7b44b228a9f4c225 /contrib | |
parent | 435ef0a62ffe830ccee159f430157cfc8cc6a3d4 (diff) | |
download | gnunet-cb1165ecfc5c89c22aa4a6fffb72e27e0bde43a3.tar.gz gnunet-cb1165ecfc5c89c22aa4a6fffb72e27e0bde43a3.zip |
util: add component name to LOG macros; util/client: log incoming message type/size/source for gnunet-logread
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/gnunet-logread | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/contrib/gnunet-logread b/contrib/gnunet-logread index 5b125a5a4..e4b6752b8 100755 --- a/contrib/gnunet-logread +++ b/contrib/gnunet-logread | |||
@@ -85,7 +85,7 @@ sub perform { | |||
85 | if (fileno O) { | 85 | if (fileno O) { |
86 | my ($time, $type, $size, $from, $to, $level, $msg); | 86 | my ($time, $type, $size, $from, $to, $level, $msg); |
87 | if (($time, $type, $size, $from, $to) = | 87 | if (($time, $type, $size, $from, $to) = |
88 | /^([A-Z][a-z]{2}\ .[0-9]\ [0-9:]{8}(?:-[0-9]{6})?)\ util-.*\b | 88 | /^([A-Z][a-z]{2}\ .[0-9]\ [0-9:]{8}(?:-[0-9]{6})?)\ util-client-.*\b |
89 | (?: Received | Transmitting )\ message \b.*?\b | 89 | (?: Received | Transmitting )\ message \b.*?\b |
90 | type \s+ (\d+) \b.*?\b | 90 | type \s+ (\d+) \b.*?\b |
91 | size \s+ (\d+) \b.*?\b | 91 | size \s+ (\d+) \b.*?\b |
@@ -172,7 +172,7 @@ gnunet-logread - a GNUnet log analyzer, colorizer and aggregator | |||
172 | 172 | ||
173 | =head1 MOTIVATION | 173 | =head1 MOTIVATION |
174 | 174 | ||
175 | GNUnet debug logs are a tedious read, but given a complex system that we | 175 | GNUnet debug logs are a tedious read, but given a complex system that we |
176 | cannot run all parts of in a debugger all the time, some gathering and | 176 | cannot run all parts of in a debugger all the time, some gathering and |
177 | structuring of events and message passing is useful. | 177 | structuring of events and message passing is useful. |
178 | 178 | ||
@@ -196,4 +196,3 @@ instead, but that is still subject to further consideration. | |||
196 | =head1 AUTHORS | 196 | =head1 AUTHORS |
197 | 197 | ||
198 | tg & lynX | 198 | tg & lynX |
199 | |||