Skip to content

Commit e3c1b1e

Browse files
committed
minor: logger bug fix (bernerdschaefer)
1 parent 969ec6f commit e3c1b1e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/mongo/connection.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,9 @@ def check_is_master(node)
604604
@nodes_tried << node
605605
if config
606606
update_node_list(config['hosts']) if config['hosts']
607-
@logger.warn(config['msg']) if config['msg']
607+
if @logger
608+
@logger.warn(config['msg']) if config['msg']
609+
end
608610
end
609611

610612
socket.close if socket

0 commit comments

Comments
 (0)