Separate question: error log filled with "One:" "Two:"

View: New views
2 Messages — Rating Filter:   Alert me  

Separate question: error log filled with "One:" "Two:"

by Brandon Kuczenski :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

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.

Thanks again,

Brandon


_______________________________________________
Gnump3d-users mailing list
Gnump3d-users@...
http://lists.gnu.org/mailman/listinfo/gnump3d-users

Re: Separate question: error log filled with "One:" "Two:"

by Benjamin Peter :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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


_______________________________________________
Gnump3d-users mailing list
Gnump3d-users@...
http://lists.gnu.org/mailman/listinfo/gnump3d-users