Permalink
Browse files

logjam expects the status_code to be named "code"

  • Loading branch information...
1 parent 77b86c2 commit 1eb778e8afedea8f4d37a19394811c3519bf5e7a @paukul committed Aug 5, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/amqp_logging/metrics_agent/rails/after_dispatch_callback_handler.rb
@@ -16,7 +16,7 @@ def self.run(dispatcher)
agent = ActionController::Base.logger.agent
agent.fields.merge!({
:env => RAILS_ENV,
- :response_code => response.status,
+ :code => response.status,
:request_params => request.request_parameters,
:request_headers => request_headers,
:response_headers => response.headers
@@ -25,4 +25,4 @@ def self.run(dispatcher)
end
end
end
-end
+end

0 comments on commit 1eb778e

Please sign in to comment.