Skip to content

Instantly share code, notes, and snippets.

@yannvery
Created June 25, 2014 07:54
Show Gist options
  • Save yannvery/98cc47b26175819f373b to your computer and use it in GitHub Desktop.
Save yannvery/98cc47b26175819f373b to your computer and use it in GitHub Desktop.
Manage log level in a Rails console
#To turn it off
old_logger = ActiveRecord::Base.logger
ActiveRecord::Base.logger = nil
#To turn it back on
ActiveRecord::Base.logger = old_logger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment