From e3c1b1eafe22da7ac80c30db950f4fdcc1d43cb1 Mon Sep 17 00:00:00 2001 From: Kyle Banker Date: Wed, 21 Jul 2010 15:27:29 -0400 Subject: [PATCH] minor: logger bug fix (bernerdschaefer) --- lib/mongo/connection.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/mongo/connection.rb b/lib/mongo/connection.rb index 253a1ae..e7df7c2 100644 --- a/lib/mongo/connection.rb +++ b/lib/mongo/connection.rb @@ -604,7 +604,9 @@ module Mongo @nodes_tried << node if config update_node_list(config['hosts']) if config['hosts'] - @logger.warn(config['msg']) if config['msg'] + if @logger + @logger.warn(config['msg']) if config['msg'] + end end socket.close if socket