From: Brian Phillips Date: Thu, 4 Mar 2010 04:20:39 +0000 (+0000) Subject: only log response status, content-type and content-length headers X-Git-Tag: 5.80025~8 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=47c65f37099eb8285df31aed6dee1f27ba2c799a only log response status, content-type and content-length headers --- diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index a2eb1da..4166359 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -2151,8 +2151,14 @@ sub log_response { my($dump) = grep {$_->[0] eq 'Response' } $c->dump_these; my $response = $dump->[1]; - $c->log->debug('Response Status: ' . $response->status); - $c->log_headers('response', $response->headers); + $c->log->debug( + sprintf( + 'Response Code: %s; Content-Type: %s; Content-Length: %s', + $response->status || 'unknown', + $response->headers->header('Content-Type') || 'unknown', + $response->headers->header('Content-Length') || 'unknown' + ) + ); } =head2 $c->log_request_parameters( query => {}, body => {} )