minor: logger fix for mocha tests that expect an non-hash argument

This commit is contained in:
Tyler Brock 2012-06-01 15:16:05 -04:00
parent c76160c2f2
commit a3555ba404

View File

@ -12,17 +12,17 @@ module Mongo
return unless @logger return unless @logger
case level case level
when :fatal then when :fatal then
@logger.fatal { "MONGODB [FATAL] #{msg}" } @logger.fatal "MONGODB [FATAL] #{msg}"
when :error then when :error then
@logger.error { "MONGODB [ERROR] #{msg}" } @logger.error "MONGODB [ERROR] #{msg}"
when :warn then when :warn then
@logger.warn { "MONGODB [WARNING] #{msg}" } @logger.warn "MONGODB [WARNING] #{msg}"
when :info then when :info then
@logger.info { "MONGODB [INFO] #{msg}" } @logger.info "MONGODB [INFO] #{msg}"
when :debug then when :debug then
@logger.debug { "MONGODB [DEBUG] #{msg}" } @logger.debug "MONGODB [DEBUG] #{msg}"
else else
@logger.debug { "MONGODB [DEBUG] #{msg}" } @logger.debug "MONGODB [DEBUG] #{msg}"
end end
end end