Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Delete LogSubscribers kludge
config.after_initialize do
notifier = ActiveSupport::Notifications.notifier
subscribers = notifier.listeners_for("sql.active_record")
subscribers += notifier.listeners_for("identify.active_record")
subscribers += notifier.listeners_for("start_processing.action_controller")
subscribers += notifier.listeners_for("process_action.action_controller")
subscribers += notifier.listeners_for("render_template.action_view")
subscribers += notifier.listeners_for("render_partial.action_view")
subscribers += notifier.listeners_for("deprecation.rails")
subscribers.each {|s| ActiveSupport::Notifications.unsubscribe s }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.