making debug call during setup conditional.
Matt S Trout [Tue, 17 Jul 2007 16:59:00 +0000 (16:59 +0000)]
r36209@cain (orig r6090):  jayk | 2007-02-19 19:11:03 +0000

lib/Catalyst/Plugin/Authentication.pm

index 00753d3..7e2f917 100644 (file)
@@ -222,7 +222,7 @@ sub _authentication_initialize {
 sub setup_auth_realm {
     my ($app, $realmname, $config) = @_;
     
-    $app->log->debug("Setting up $realmname");
+    $app->log->debug("Setting up auth realm $realmname") if $app->debug;
     if (!exists($config->{'store'}{'class'})) {
         Carp::croak "Couldn't setup the authentication realm named '$realmname', no class defined";
     }