[Catalyst] Selective debug output

Jonathan Rockway jon at jrock.us
Wed Nov 7 01:47:11 GMT 2007

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=3D>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.

Jonathan Rockway

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 370 bytes
Desc: OpenPGP digital signature
Url : http://lists.scsys.co.uk/pipermail/catalyst/attachments/20071106/4b8f=

More information about the Catalyst mailing list