Fixed debug messages
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Dispatcher.pm
index 070f084..7ba40cc 100644 (file)
@@ -198,6 +198,9 @@ sub prepare_action {
         unshift @args, pop @path;
     }
 
+    $c->log->debug( 'Path is "' . $c->req->match . '"' )
+      if ( $c->debug && $c->req->match );
+
     $c->log->debug( 'Arguments are "' . join( '/', @args ) . '"' )
       if ( $c->debug && @args );
 }