From a3555ba404552da196702f2eb9e730950d626aee Mon Sep 17 00:00:00 2001 From: Tyler Brock Date: Fri, 1 Jun 2012 15:16:05 -0400 Subject: [PATCH] minor: logger fix for mocha tests that expect an non-hash argument --- lib/mongo/util/logging.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/mongo/util/logging.rb b/lib/mongo/util/logging.rb index 31a9dcd..80792fa 100644 --- a/lib/mongo/util/logging.rb +++ b/lib/mongo/util/logging.rb @@ -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