lib/ecoportal/api/v1/people.rb in ecoportal-api-0.3.4 vs lib/ecoportal/api/v1/people.rb in ecoportal-api-0.3.5

- old
+ new

@@ -51,13 +51,16 @@ id = get_id(doc) @client.post("/people/"+CGI::escape(id), data: body) end def batch - operation = Common::BatchOperation.new("/people", person_class) + operation = Common::BatchOperation.new("/people", person_class, logger: @client.logger) yield operation - @client.post("/people/batch", data: operation.as_json).tap do |response| - operation.process_response(response) + # The batch operation is responsible for logging the output + @client.without_response_logging do + @client.post("/people/batch", data: operation.as_json).tap do |response| + operation.process_response(response) + end end end def delete(doc) id = get_id(doc)