Created
August 17, 2011 09:19
-
-
Save shtirlic/1151164 to your computer and use it in GitHub Desktop.
Monkey patch Unicorn to have more info on logs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Unicorn::HttpParser | |
alias old_read read | |
def read(socket) | |
env = old_read(socket) | |
DEFAULTS["rack.logger"].debug env["REQUEST_PATH"] | |
env | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment