Ensure that status codes are logged properly #2133

Merged
merged 1 commit into from Jul 18, 2011

Conversation

Projects
None yet
2 participants
Contributor

jstorimer commented Jul 18, 2011

Had to move AC::Metal::Instrumentation before AC::Metal::Rescue so that status codes set by rescue_from blocks are logged properly.

Previously, the Rails logger was logging a Completed 500 for anything that passed through a rescue_from block, even if it set a different status code for the response.

@jstorimer jstorimer Ensure that status codes are logged properly
Needed to move AC::Metal::Instrumentation before AM::Metal::Rescue
so that status codes rendered from rescue_from blocks are logged
properly.
ac81af4

@josevalim josevalim added a commit that referenced this pull request Jul 18, 2011

@josevalim josevalim Merge pull request #2133 from jstorimer/ensure-status-codes-are-logge…
…d-properly

Ensure that status codes are logged properly
b475f74

@josevalim josevalim merged commit b475f74 into rails:master Jul 18, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment