Skip to content

Commit

Permalink
Fix Mongoid log level
Browse files Browse the repository at this point in the history
  • Loading branch information
dwbutler committed Dec 5, 2016
1 parent 93dfa45 commit a36691e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion spec/mongoid_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,13 @@
Mongoid::Config.sessions = client_configuration
Moped.logger = Logger.new(STDOUT) if DEBUG
else
Mongoid::Config.log_level = :debug if DEBUG
if DEBUG
Mongoid::Config.log_level = :debug
Mongoid.logger.level = ::Logger::DEBUG
else
Mongoid::Config.log_level = :warn
Mongoid.logger.level = ::Logger::WARN
end
Mongoid::Config.load_configuration(clients: client_configuration)
end

Expand Down

0 comments on commit a36691e

Please sign in to comment.