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
1 changed files with 6 additions and 6 deletions

View File

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