X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FEngine.pm;h=38d8aeffbaa6fe99c25269b702c32e4b00584f68;hb=0556eb49954590b794221ed3a033565c85dbeb32;hp=7395270c28eb8d0eb6d083ec1e8c6649d653e153;hpb=bc024080353d9982272a134e49e8601ed20c1a50;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Engine.pm b/lib/Catalyst/Engine.pm index 7395270..38d8aef 100644 --- a/lib/Catalyst/Engine.pm +++ b/lib/Catalyst/Engine.pm @@ -124,7 +124,6 @@ sub action { } } - =item $c->benchmark($coderef) Takes a coderef with arguments and returns elapsed time as float. @@ -491,9 +490,13 @@ sub prepare { $c->prepare_path; $c->prepare_cookies; $c->prepare_headers; - my $method = $c->req->method || ''; - my $path = $c->req->path || ''; - $c->log->debug(qq/"$method" request for "$path"/) if $c->debug; + $c->prepare_connection; + my $method = $c->req->method || ''; + my $path = $c->req->path || ''; + my $hostname = $c->req->hostname || ''; + my $address = $c->req->address || ''; + $c->log->debug(qq/"$method" request for "$path" from $hostname($address)/) + if $c->debug; $c->prepare_action; $c->prepare_parameters; @@ -562,6 +565,14 @@ sub prepare_action { if ( $c->debug && @args ); } +=item $c->prepare_connection; + +Prepare connection. + +=cut + +sub prepare_connection { } + =item $c->prepare_cookies; Prepare cookies.