w2bro
w2bro

Reputation: 1016

RoR: Disable DB queries in log

Is there a way to disable MONGODB logs in the rails development.log file?

Currently running rails 3.2.7 with Mongoid as the driver.

Upvotes: 1

Views: 937

Answers (1)

Eve Freeman
Eve Freeman

Reputation: 33145

In mongoid 2.2+, you can set it in the mongoid.yml file like so:

development:
  ...
  logger: false

Not sure if that still works in mongoid 3. You might want to specify your mongoid version.

Upvotes: 1

Related Questions