X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FEngine.pm;h=38d8aeffbaa6fe99c25269b702c32e4b00584f68;hb=5c57dc98a26e653927d331817f09267260cd3f63;hp=260c9e300d286c68f544fdcc4789508dffd24c50;hpb=23f9d93414eadb11350029f13b51841d8309363b;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Engine.pm b/lib/Catalyst/Engine.pm index 260c9e3..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.