Created
June 18, 2009 00:58
-
-
Save softprops/131633 to your computer and use it in GitHub Desktop.
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
# 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