Back to Entries

Quiet Rails database logging

Date: 2015-12-07
Tags: rails logging

When developing Rails apps (4.2.x), sometimes, I want to quiet the database logging output. This is how its done:

ActiveRecord::Base.logger.level = 1