Created
December 13, 2010 01:01
-
-
Save radar/738520 to your computer and use it in GitHub Desktop.
This file contains 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
module ActionController | |
class LogSubscriber < ActiveSupport::LogSubscriber | |
def start_processing(event) | |
payload = event.payload | |
params = payload[:params].except(*INTERNAL_PARAMS) | |
info " Processing by #{payload[:controller]}##{payload[:action]} as #{payload[:formats].first.to_s.upcase}" | |
info " Parameters: #{params.inspect}" unless params.empty? || params[:action] == "create" | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment