Permalink
Browse files

Reduce Mongoid logging in production

  • Loading branch information...
1 parent 7db5ace commit 8e224f861dd17059725aba4db98f8a3cf22cd69f @hmans committed Jun 30, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 config/boot.rb
View
@@ -27,6 +27,7 @@
Mongoid::Config.from_hash(
'uri' => ENV['MONGOLAB_URI'] || ENV['MONGOHQ_URL'] || ENV['MONGO_URL'] || 'mongodb://localhost/eventually'
)
+Mongoid.logger.level = 3 if Happy.env.production?
# A little MarkdownRenderer class for Redcarpet.
#

0 comments on commit 8e224f8

Please sign in to comment.