Will Hawes wrote: > > Is my mistake in misunderstanding how $c->log->debug() is supposed to > work? Or is it likely that I've somehow overridden CATALYST_DEBUG > elsewhere?
It is indeed. $c->log->debug() has nothing to do with CATALYST_DEBUG. Try: $c->log->debug('Hello') if $c->debug; I think the reason for this is so that if you have sub MyApp::debug { 0 }, the call to debug is completely optimized away at compile time... but I'm not sure this works for method calls (or even MyApp->debug, although MyApp::debug would work correctly). Someone else will explain what's actually going on. I've had too much to drink tonight :) Regards, Jonathan Rockway
signature.asc
Description: OpenPGP digital signature
_______________________________________________ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/