Skip to content

Instantly share code, notes, and snippets.

@thepoho
Created August 15, 2016 10:48
Show Gist options
  • Save thepoho/777d3c8d0ceb0d7c85c92b7077bd29e9 to your computer and use it in GitHub Desktop.
Save thepoho/777d3c8d0ceb0d7c85c92b7077bd29e9 to your computer and use it in GitHub Desktop.
Turn off activerecord SQL logging in dev mode
config.after_initialize do
ActiveRecord::Base.logger = Rails.logger.clone
ActiveRecord::Base.logger.level = Logger::INFO
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment