ryanwold.net

A civic-minded citizen seeking the singularity

An entry

Quiet Rails database logging

Date: 2015-12-07
Status: release
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