gnump3d-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnump3d-users] Separate question: error log filled with "One:" "Two


From: Benjamin Peter
Subject: Re: [Gnump3d-users] Separate question: error log filled with "One:" "Two:"
Date: Mon, 29 Dec 2008 19:03:45 +0100
User-agent: Mozilla-Thunderbird 2.0.0.17 (X11/20081018)

Hi Brandon,

Brandon Kuczenski wrote:
> I also have a question about my error log.  The program seems to fill
> the error.log with lines that look like this:
> 
> ...
> One: Clash - Rock The Casbah
> Two: Communique - Perfect Weapon
> One: Communique - Perfect Weapon
> Two: The_Capitol_Years_3_Long_Time
> One: The_Capitol_Years_3_Long_Time
> Two: The Chameleons UK - Perfume Garden
> ...
> 
> What do those mean?  Can I make them stop?  I would like to be able to
> see actual errors.

I am not a developer but if you want to disable the output _now_ you
just have to modify one file.

Search for a "gnump3d/sorting.pm" file on your filesystem. (On my sys it
is located at "/usr/share/perl5/gnump3d/sorting.pm".

In line 141 and line 149 you have to remove the "print" statements.

139     elsif ( $format =~ /\$FULLPATH/ )
140     {
141       @SORTED = sort{ print "One: $a\n";
142                       print "Two: $b\n";
143                       return( uc($a) cmp uc($b) ); } @files;
144     }
145     else
146     {
147       @SORTED = sort{ my $one = getSongDisplay( $a, $format );
148           my $two = getSongDisplay( $b, $format );
149           print "One: $one\n";
150       print "Two: $two\n";
151           return( uc($one) cmp uc($two) ); } @files;
152     }

Must become

139     elsif ( $format =~ /\$FULLPATH/ )
140     {
141       @SORTED = sort{ return( uc($a) cmp uc($b) ); } @files;
142     }
143     else
144     {
145       @SORTED = sort{ my $one = getSongDisplay( $a, $format );
146           my $two = getSongDisplay( $b, $format );
147           return( uc($one) cmp uc($two) ); } @files;
148     }

Seems like someone just forgot to remove some debug output. :)

hth

Benjamin Peter




reply via email to

[Prev in Thread] Current Thread [Next in Thread]