[Catalyst] Selective debug output
Jonathan Rockway
jon at jrock.us
Wed Nov 7 04:11:35 GMT 2007
J. Shirley writes:
> I would prefer something like:
> MyApp->config(
> 'PluginName' =3D> { debug =3D 0 }
> );
>
> Thoughts?
Nice. But maybe do "Plugin::PluginName" to avoid namespace collisions.
I wonder how we can best make this approach "standard" though...
If I were nothingmuch, I would do caller magic to determine which module
is calling $c->debug, and then return true or false accordingly. Maybe
I will try this out as a plugin, actually :) Evil, but it will hack
around broken plugins and Just Work :)
Regards,
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/80b6=
8c77/signature.pgp
More information about the Catalyst
mailing list