[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Fwd: [Koha-devel] Q: DebugLevel=2 and version list; do we want backtrace
From: |
Galen Charlton |
Subject: |
Fwd: [Koha-devel] Q: DebugLevel=2 and version list; do we want backtraces? |
Date: |
Thu, 27 Mar 2008 14:49:01 -0500 |
[Forgot to CC koha-devel; apologies to MJ for duplicate email --gmc]
---------- Forwarded message ----------
From: Galen Charlton <address@hidden>
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 <address@hidden>
Hi,
On Wed, Mar 26, 2008 at 11:04 AM, MJ Ray <address@hidden> 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
address@hidden
p: 1-888-564-2457 x709
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Fwd: [Koha-devel] Q: DebugLevel=2 and version list; do we want backtraces?,
Galen Charlton <=