|
From: <zw...@ma...> - 2009-06-03 04:56:25
|
Author: zwelch
Date: 2009-06-03 04:56:20 +0200 (Wed, 03 Jun 2009)
New Revision: 2023
Modified:
trunk/tools/logger.pl
Log:
Improve logger script to expose warnings and errors in the output.
Modified: trunk/tools/logger.pl
===================================================================
--- trunk/tools/logger.pl 2009-06-03 02:17:26 UTC (rev 2022)
+++ trunk/tools/logger.pl 2009-06-03 02:56:20 UTC (rev 2023)
@@ -24,8 +24,14 @@
{
# echo line to output
print STDOUT $_;
+ # echo line to console if it is important
+ if (/(Warning|Error)/) {
+ print STDERR "\n" if $c;
+ print STDERR $_;
+ $c = 0;
+ }
# only display progress every Nth step
- next unless ++$n % $N;
+ next if ++$n % $N;
print STDERR ".";
# wrap at column C to provide fixed-width rows of dots
print STDERR "\n" unless ++$c % $C;
|