Skip Menu |

This queue is for tickets about the Catalyst-Runtime CPAN distribution.

Report information
The Basics
Id: 105598
Status: resolved
Priority: 0/
Queue: Catalyst-Runtime

People
Owner: Nobody in particular
Requestors: cjm [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 5.90093
Fixed in: (no value)



Subject: -Log=debug activates -Debug mode
When I do this in my MyApp.pm: __PACKAGE__->setup("-Log=debug,info,warn,error,fatal"); It's also turning on -Debug mode (so I get error dumps in the browser instead of the "Please come back later" page I expected). __PACKAGE__->debug is returning true. If I change it to __PACKAGE__->setup("-Log=info,warn,error,fatal"); then I'm not in -Debug mode, and I see the "Please come back later" page. __PACKAGE__->debug returns false. As a workaround, I'm doing __PACKAGE__->setup("-Log=info,warn,error,fatal"); __PACKAGE__->log->levels(qw(debug info warn error fatal)); This seems to work fine. I get debug log messages without browser error dumps. But I was very surprised to find that turning on debug logging also turned on error dumps.
Yeah this is a bummer. There's code that enables catalyst debug mode when you set the log level to debug via setup. I tried to detangle this once but no one was happy with it. At this point I am just going to leave it alone since not sure who is relying on the odd behavior or not (I know at least one company that does). But I will add a separate issue to write some docs on it.