lib/mongo/mongo.rb in logstash-input-mongoprofile-0.0.1 vs lib/mongo/mongo.rb in logstash-input-mongoprofile-0.0.2

- old
+ new

@@ -77,11 +77,11 @@ File.read(@file_full_name) end end class Controller - def initialize(event, url, collection, limit, path) - @mongo_accessor = MongoAccessor.new(url, collection) + def initialize(event, url, collection, limit, path, client_host) + @mongo_accessor = MongoAccessor.new(url, collection, client_host) @last_value_store = LastValueStore.new(path, collection) @document_parser = DocumentParser.new(event) @limit = limit end