Skip to content
This repository has been archived by the owner on Oct 5, 2023. It is now read-only.

Set mongoids log level to INFO #11

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion spec/support/mongoid_backend.rb
Expand Up @@ -18,6 +18,7 @@ def self.authenticate_with_username_and_password(username, password)
config.resource_owner_class_name = 'ExampleResourceOwner' config.resource_owner_class_name = 'ExampleResourceOwner'
end end


Mongoid.logger.level = Logger::INFO
Mongoid.configure do |config| Mongoid.configure do |config|
config.from_hash( config.from_hash(
"host" => "127.0.0.1", "host" => "127.0.0.1",
Expand All @@ -31,4 +32,5 @@ def self.authenticate_with_username_and_password(username, password)
"use_activesupport_time_zone" => true, "use_activesupport_time_zone" => true,
"database" => "oauth2_test" "database" => "oauth2_test"
) )
end end