[Forgot to CC koha-devel; apologies to MJ for duplicate email --gmc]

---------- Forwarded message ----------
From: Galen Charlton <[EMAIL PROTECTED]>
Date: Thu, Mar 27, 2008 at 2:47 PM
Subject: Re: [Koha-devel] Q: DebugLevel=2 and version list; do we want
backtraces?
To: MJ Ray <[EMAIL PROTECTED]>


Hi,


 On Wed, Mar 26, 2008 at 11:04 AM, MJ Ray <[EMAIL PROTECTED]> wrote:
 > Hi all.  Is anyone else with DebugLevel 2 (which I think is the default)
 >  in their system preferences seeing a list of versions when Koha errors?
 >  There's code for it in C4::Context but it doesn't seem to work for me.
 >  Is C4::Context->preferences() really accessible from handle_errors like
 >  that?

 I've submitted a couple patches to fix the display of version numbers
 when DebugLevel = 2.  The preferences do in fact seem to be accessible
 from handle_errors(); the change was to correct how set_message is
 invoked:

 -               CGI::Carp->set_message(\&handle_errors);
 +               CGI::Carp::set_message(\&handle_errors);


 >  I've copied the backtrace snippet from mod_perl_startup.pl on
 >  http://www.gluelogic.com/code/BitTorrent/
 >  into my C4::Context and control it from koha-httpd.conf with a
 >  SetEnv KOHA_BACKTRACES line.  Do we want backtraces like that?
 >  I think KOHA_BACKTRACES may be better than DebugLevel because
 >  then we still get them if the database is unreachable.

 I agree that having an option to display traces would be handy, and it
 makes sense to use an environment variable for that (and maybe also a
 system preference so that when the database *is* available, the
 display of traces can be turned off or on without having to bounce
 Apache).

 Regards,

 Galen
 --
 Galen Charlton
 Koha Application Developer
 LibLime
 [EMAIL PROTECTED]
 p: 1-888-564-2457 x709


_______________________________________________
Koha-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/koha-devel

Reply via email to