Skip to content

Instantly share code, notes, and snippets.

@gaffneyc
Created November 19, 2014 21:41
Show Gist options
  • Save gaffneyc/c0daf1963cc74aa7a52d to your computer and use it in GitHub Desktop.
Save gaffneyc/c0daf1963cc74aa7a52d to your computer and use it in GitHub Desktop.
Disable logging in the test environment
Rails.application.configure do
# Don't write output to test.log
config.logger = ::ActiveSupport::Logger.new("/dev/null")
config.logger.formatter = lambda { |*_| nil }
config.logger.level = 10 # FATAL is 4
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment