Revert "Solves: "gems/mongo-1.6.0/lib/mongo/util/logging.rb:34:in `instrument': undefined method `level' for #<Mongoid::Logger:0x00000103ca7570> (NoMethodError)""

This reverts commit 775ed49e6c.

a logger should quack like a logger
This commit is contained in:
Tyler Brock 2012-02-23 11:52:09 -05:00
parent 87fd68e9d9
commit 038cbea739
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ module Mongo
def instrument(name, payload = {}, &blk)
start_time = Time.now
res = yield
if @logger && @logger.respond_to?("level") && (@logger.level == DEBUG_LEVEL)
if @logger && (@logger.level == DEBUG_LEVEL)
log_operation(name, payload, start_time)
end
res