lib/fluent/plugin/out_honeycomb.rb in fluent-plugin-honeycomb-0.7.0 vs lib/fluent/plugin/out_honeycomb.rb in fluent-plugin-honeycomb-0.7.1

- old
+ new

@@ -130,12 +130,12 @@ end end def parse_response(batch, resp) if resp.status != 200 - # Force retry log.error "Error sending batch: #{resp.status}, #{resp.body}" - raise Exception.new("Error sending batch: #{resp.status}, #{resp.body}") + # Force retry by returning the entire batch + return batch end begin results = JSON.parse(resp.body) rescue JSON::ParserError => e