[Catalyst] [Patch]
Catalyst::Plugin::Authentication::Credential::Password.pm --
typo and debug consistency
Bill Moseley
moseley at hank.org
Mon Jan 9 19:59:00 CET 2006
On Mon, Jan 09, 2006 at 05:54:15PM +0100, phaylon wrote:
> Am Montag, den 09.01.2006, 07:09 -0800 schrieb Bill Moseley:
>
> > > $c->log->debug(
> > ...
> > > + if $c->debug;
> >
> > I see that quite often. Is that just to save one method call?
>
> IIRC $c->log->debug doesn't care about the $c->debug flag, it just
> outputs into the debug channel.
I think it does that check for you. You have to have debug level set.
*{$name} = sub {
my $self = shift;
if ( $self->{level} & $level ) {
$self->_log( $name, @_ );
}
};
--
Bill Moseley
moseley at hank.org
More information about the Catalyst
mailing list