You can silence the Rails logger object:
def action
Rails.logger.silence do
# Things within this block will not be logged...
end
end
More Related Contents:
- Ruby on Rails production log rotation
- Rails: Multi-submit buttons in one Form
- How to log something in Rails in an independent log file?
- how to permit an array with strong parameters
- Access current_user in model
- Begin, Rescue and Ensure in Ruby?
- How to “pretty” format JSON output in Ruby on Rails
- Rails DB Migration – How To Drop a Table?
- Devise form within a different controller
- Rails layouts per action?
- In Rails, how do you render JSON using a view?
- Rails sessions current practices
- No secret option provided to Rack::Session::Cookie warning?
- ruby on rails f.select options with custom attributes
- Profile model for Devise users?
- Rails: Missing host to link to! Please provide :host parameter or set default_url_options[:host]
- How do I change the default “www.example.com” domain for testing in rails?
- Rails ActiveRecord: Find All Users Except Current User
- Rails how do I – export data with send_data then redirect_to a new page?
- Rails: around_* callbacks
- How to keep public and private versions of a git repo in sync?
- Undefined method raise_in_transactional_callbacks=’ for ActiveRecord::Base:Class (NoMethodError)
- Rails active record querying association with ‘exists’
- How do you handle Rail’s flash with Ajax requests?
- Add a default value to a column through a migration
- Rails: How to change the title of a page?
- To use self. or not.. in Rails
- How to return HTML directly from a Rails controller?
- Why not use shared ActiveRecord connections for Rspec + Selenium?
- How can I format the value shown in a Rails edit field?