[Koha-patches] [PATCH] fixes print statements with missing 'STDERR', causing 500 errors when debugging

Mason James mason.loves.sushi at gmail.com
Tue Mar 10 02:53:13 CET 2009


On 2009/03/10, at 3:28 AM, Galen Charlton wrote:

> Hi,
>
> On Sun, Mar 8, 2009 at 6:58 AM, Mason James  
> <mason.loves.sushi at gmail.com> wrote:
>>  sub ldapserver_error ($) {
>> -       return sprintf('No ldapserver "%s" defined in KOHA_CONF:  
>> ' . $ENV{KOHA_CONF}, shift);
>> +       return warn sprintf('No ldapserver "%s" defined in  
>> KOHA_CONF: ' . $ENV{KOHA_CONF}, shift);
>>  }
>
> Changing "return sprintf" to "return warn sprintf" means that you're
> changing the return value from the error message to the value 1.  The
> die statements that use ldapserver_error() would thus provide *less*
> information.

yep, i too spotted this error and fixed on my next patch


> I agree with the intention of making sure that debug messages get sent
> to STDERR instead of STDOUT, but this patch and its successor need
> work.

no problemo, new patch sent...
this one looks better

thanks again for the clues Joe and Galen



More information about the Koha-patches mailing list