Skip to content

Instantly share code, notes, and snippets.

@shtirlic
Created August 17, 2011 09:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shtirlic/1151164 to your computer and use it in GitHub Desktop.
Save shtirlic/1151164 to your computer and use it in GitHub Desktop.
Monkey patch Unicorn to have more info on logs
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