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.