Skip to content

Instantly share code, notes, and snippets.

@softprops
Created June 18, 2009 00:58
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 softprops/131633 to your computer and use it in GitHub Desktop.
Save softprops/131633 to your computer and use it in GitHub Desktop.
# set process cmd
# http://pragdave.blogs.pragprog.com/pragdave/2008/11/trivial-request-logging-for-rails.html
before_filter :set_process_name_from_request
def set_process_name_from_request
$0 = request.path[0,16]
end
after_filter :unset_process_name_from_request
def unset_process_name_from_request
$0 = request.path[0,15] + "*"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment