Skip to content

Commit

Permalink
log the request format with the exception logger
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.techno-weenie.net/projects/plugins/exception_logger@2733 567b1171-46fb-0310-a4c9-b4bef9110e78
  • Loading branch information
technoweenie committed Feb 7, 2007
1 parent c7c487b commit af04947
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/logged_exception.rb
Expand Up @@ -41,7 +41,8 @@ def request=(request)
write_attribute(:environment, (env << "* Process: #{$$}" << "* Server : #{self.class.host_name}") * "\n")

write_attribute(:request, [
"* URL: #{request.protocol}#{request.env["HTTP_HOST"]}#{request.request_uri}",
"* URL:#{" #{request.method.to_s.upcase}" unless request.get?} #{request.protocol}#{request.env["HTTP_HOST"]}#{request.request_uri}",
"* Format: #{request.format.to_s}",
"* Parameters: #{request.parameters.inspect}",
"* Rails Root: #{rails_root}"
] * "\n")
Expand Down

0 comments on commit af04947

Please sign in to comment.