Permalink
Browse files

logger or not for mongo connection

  • Loading branch information...
1 parent 0477ba3 commit 82b29c24ddff7381c741402828686c73678918e8 @flyerhzm committed Jan 20, 2011
Showing with 3 additions and 2 deletions.
  1. +2 −1 benchmark/benchmark.rb
  2. +1 −1 spec/spec_helper.rb
View
3 benchmark/benchmark.rb
@@ -5,7 +5,8 @@
require "mongoid-eager-loading"
Mongoid.configure do |config|
- config.master = Mongo::Connection.new.db("mongoid_perf_test", :logger => Logger.new($stdout, :info))
+ #config.master = Mongo::Connection.new('localhost', 27018, :logger => Logger.new($stdout)).db("mongoid_perf_test")
+ config.master = Mongo::Connection.new.db("mongoid_perf_test")
end
Mongoid.master.collection("people").drop
View
2 spec/spec_helper.rb
@@ -12,8 +12,8 @@
Mongoid.configure do |config|
name = "mongoid_test"
host = "localhost"
+ #config.master = Mongo::Connection.new(host, 27018, :logger => Logger.new($stdout)).db(name)
config.master = Mongo::Connection.new.db(name)
- config.logger = nil
# config.slaves = [
# Mongo::Connection.new(host, 27018, :slave_ok => true).db(name)
# ]

0 comments on commit 82b29c2

Please sign in to comment.