[Catalyst] C::C::FormBuilder debug noise...
Marcello Romani
mromani at ottotecnica.com
Mon May 7 09:12:41 GMT 2007
RA Jones ha scritto:
> Marcello Romani wrote:
>
>> Hmm, I tried your code (which afaikt should work) but putting 0,1 or 2
>> doesn't make any difference in the type or amount of debug messages
>> the app is emitting.
>>
>> I'll double check my code and report. Thanks for now.
>>
>
> It looks like your output is showing both debug1 and debug2 levels,
> which suggests your fb config settings are not being used. Did you place
That's what I thought too.
> the config code in a controller? In my app I have a base class
It's placed in the main app module. I.e.:
MyApp.pm:
__PACKAGE__->config(
'Controller::FormBuilder' => {
new => {
debug => 0,
},
}
);
> intermediate between the controllers and CCF, and I put the formbuilder
> config in the there. I don't see why it should make a difference, but it
> might be worth a try.
Where do you put the "debug" option ?
I tried this:
package MyApp::Controller::FBConfig;
use strict;
use warnings;
use base qw/Catalyst::Controlloer::FormBuilder/;
sub new {
my $class = shift;
my $self = $class->SUPER::new(@_);
$self->{debug} = 0;
return 0;
}
1;
But of course it doesn't work. Could you post (some of) your code ?
Thanks you very much.
--
Marcello Romani
Responsabile IT
Ottotecnica s.r.l.
http://www.ottotecnica.com
More information about the Catalyst
mailing list