Skip to content

Instantly share code, notes, and snippets.

@radar
Created December 13, 2010 01:01
Show Gist options
  • Save radar/738520 to your computer and use it in GitHub Desktop.
Save radar/738520 to your computer and use it in GitHub Desktop.
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