Skip to content

Instantly share code, notes, and snippets.

@BuonOmo
Created September 3, 2024 14:45
Show Gist options
  • Save BuonOmo/8255726b069dd09a5e3734e86faf87da to your computer and use it in GitHub Desktop.
Save BuonOmo/8255726b069dd09a5e3734e86faf87da to your computer and use it in GitHub Desktop.
Log ALL ActiveRecord SQL
ActiveRecord::Base.logger = Logger.new(STDOUT)
ActiveRecord::Base.logger.level = Logger::DEBUG
ActiveRecord::LogSubscriber::IGNORE_PAYLOAD_NAMES.clear
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment