lib/mongodb_logger/adapters/moped.rb in mongodb_logger-0.5.1 vs lib/mongodb_logger/adapters/moped.rb in mongodb_logger-0.5.2

- old
+ new

@@ -83,15 +83,15 @@ private def mongo_connection_object if @configuration['hosts'] - conn = ::Moped::Session.new(@configuration['hosts'].map{|(host,port)| "#{host}:#{port}"}, :timeout => 6) + conn = ::Moped::Session.new(@configuration['hosts'].map{|(host,port)| "#{host}:#{port}"}, :timeout => 6, :ssl => @configuration['ssl']) @configuration['replica_set'] = true elsif @configuration['url'] conn = ::Moped::Session.connect(@configuration['url']) else - conn = ::Moped::Session.new(["#{@configuration['host']}:#{@configuration['port']}"], :timeout => 6) + conn = ::Moped::Session.new(["#{@configuration['host']}:#{@configuration['port']}"], :timeout => 6, :ssl => @configuration['ssl']) end @connection_type = conn.class conn end \ No newline at end of file