[Catalyst] forgotten logins

Drew Taylor taylor.andrew.j at gmail.com
Sat Jan 28 14:42:39 CET 2006


On 1/28/06, Wijnand Wiersma <wijnand at nedbsd.nl> wrote:
> $c->log("$c->user->{name} was here") if $c->user_exists;
> but somehow that disables logging in. This was a login request:

Early on I made this error too: what your code is doing is replacing
the Catalyst::Log object with a string! The logging object has several
levels of logging - see the pod for details.

What you really meant to write is $c->log->debug(). That should fix
the server errors at least.

Drew
--
----------------------------------------------------------------
 Drew Taylor                 *  Web development & consulting
 Email: drew at drewtaylor.com  *  Site implementation & hosting
 Web  : www.drewtaylor.com   *  perl/mod_perl/DBI/mysql/postgres
 ----------------------------------------------------------------



More information about the Catalyst mailing list