Skip to content

Commit

Permalink
Reduce logging level with Mongoid 6.
Browse files Browse the repository at this point in the history
  • Loading branch information
dblock committed Apr 9, 2017
1 parent a0f0601 commit 09ebbec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
config.raise_errors_for_deprecations!
config.before :all do
Mongoid.logger.level = Logger::INFO
Mongo::Logger.logger.level = Logger::INFO if Mongoid::Compatibility::Version.mongoid5?
Mongo::Logger.logger.level = Logger::INFO if Mongoid::Compatibility::Version.mongoid5? || Mongoid::Compatibility::Version.mongoid6?
Mongoid.belongs_to_required_by_default = false if Mongoid::Compatibility::Version.mongoid6?
end
end

0 comments on commit 09ebbec

Please sign in to comment.