X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FEngine.pm;h=ce8e940ecd7c45f64bf61865da227ce9bc0ee1b5;hb=b5524568632c98c00e7f3a21e0c74b93fd5b8863;hp=358a9402c3a616e2422a9c430edfeb8859438758;hpb=748161c4ad23fb071c9906201f98d7aaaad29222;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Engine.pm b/lib/Catalyst/Engine.pm index 358a940..ce8e940 100644 --- a/lib/Catalyst/Engine.pm +++ b/lib/Catalyst/Engine.pm @@ -136,7 +136,7 @@ sub benchmark { return wantarray ? ( $elapsed, @return ) : $elapsed; } -=head3 component / comp +=head3 component (comp) Get a component object by name. @@ -481,6 +481,15 @@ sub prepare { $c->log->debug(qq/"$method" request for "$path"/) if $c->debug; $c->prepare_action; $c->prepare_parameters; + + if ( $c->debug && keys %{ $c->req->params } ) { + my @params; + for my $key ( keys %{ $c->req->params } ) { + my $value = $c->req->params->{$key} || ''; + push @params, "$key=$value"; + } + $c->log->debug( 'Parameters are "' . join( ' ', @params ) . '"' ); + } $c->prepare_uploads; return $c; }