Permalink
Browse files

log the request format with the exception logger

git-svn-id: http://svn.techno-weenie.net/projects/plugins/exception_logger@2733 567b1171-46fb-0310-a4c9-b4bef9110e78
  • Loading branch information...
1 parent c7c487b commit af04947d186e83e08fd75382e90428fd69850d46 technoweenie committed Feb 7, 2007
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/logged_exception.rb
View
@@ -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")

0 comments on commit af04947

Please sign in to comment.