making debug call during setup conditional.
[catagits/Catalyst-Plugin-Authentication.git] / 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";
     }