On Nov 6, 2007 5:47 PM, Jonathan Rockway <[EMAIL PROTECTED]> wrote:

> Joe Landman wrote:
> > How do I selectively enable or disable debugging output?
> > Specifically, FormBuilder debugging output is simply far to verbose to
> > be meaningful to us.  I suppose I could simply pass in a debug=>0 when
> > I create the form.  Is there any global way?
> >
> > FWIW:  I only want to surpress formbuilder output during debug.
>
> Unfortunately there is no way to do what you want.  Most of the plugins
> (etc.) just check $c->debug to see whether or not to log via
> $c->log->debug.  I suggest a filter in a custom log class (just regex
> the formbuilder crap out), or fixing the plugins/controllers to check
> $c->config->{pluginname_debug) or something.  Maybe we can make this
> easier in 5.8; suggestions welcome.
>
> Regards,
> Jonathan Rockway
>
>
>
>
>
I would prefer something like:
MyApp->config(
    'PluginName' => { debug = 0 }
);

Thoughts?

-- 
J. Shirley :: [EMAIL PROTECTED] :: Killing two stones with one bird...
http://www.toeat.com
_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to