[Catalyst] Found a simple way to restrain the verbosity of C::C::FormBuilder under debug

Kieren Diment diment at gmail.com
Sun Jan 20 07:40:39 GMT 2008


On 15 Jan 2008, at 03:29, Joe Landman wrote:

> Ok, this has been bugging me for a while.  When you turn on app  
> debugging, C::C::FormBuilder goes nuclear on your logs.  You have a  
> small percentage of your log being your application, and most of  
> your log being the  C::C::FormBuilder being its internal  
> machinations ... which, I really, really don't need to see.
>
> So, how do you turn off (or control) the C::C::FormBuilder logs?   
> Kinda simple really.
>
> When you create your form:
>
> 	use base 'Catalyst::Controller::FormBuilder';
> 	sub clone : Local Form {
>     	  my ($self, $c) = @_;
>    	  ....
>    	  my $form = $self->formbuilder->new(debug=>0);
>
> and ... no more megatons of C::C::FormBuilder internal discussions  
> in your logs.
>
> Now it is calm, controlled, showing the entry into  
> C::C::FormBuilder and the exit of C::C::FormBuilder ...
>
> Thought everyone would like to know.



On 15 Jan 2008, at 05:16, Tony Losey wrote:
> debug: 0
>
> Will work in your FormBuilder config files.
>


Can someone do me a documentation patch for this please.  I promise  
to apply it :)



More information about the Catalyst mailing list