From: Ian Jackson Date: Tue, 1 Sep 2009 15:05:33 +0000 (+0100) Subject: Show messages immediately in debug mode X-Git-Tag: 3.4~45 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=ypp-sc-tools.web-live.git;a=commitdiff_plain;h=93e9c9158b5075a6466c07cc516fe85207e3e069 Show messages immediately in debug mode --- diff --git a/yarrg/yppedia-chart-parser b/yarrg/yppedia-chart-parser index 4ce6bce..84386b2 100755 --- a/yarrg/yppedia-chart-parser +++ b/yarrg/yppedia-chart-parser @@ -55,7 +55,11 @@ my @msgkinds= qw(change warning error); my %msgs; my %msgprinted; my %msgkindprinted; -sub pmsg ($$) { push @{ $msgs{$_[0]} }, "$_[0]: $_[1]\n"; } +sub pmsg ($$) { + my $m= "$_[0]: $_[1]\n"; + print DEBUG "D $m"; + push @{ $msgs{$_[0]} }, $m; +} sub warning ($) { pmsg("warning",$_[0]); } sub error ($) { pmsg("error", $_[0]); } sub change ($) { pmsg("change", $_[0]); }