lib/logstash/inputs/rss.rb in logstash-input-rss-3.0.5 vs lib/logstash/inputs/rss.rb in logstash-input-rss-3.0.6

- old
+ new

@@ -63,11 +63,10 @@ body = response.body begin feed = RSS::Parser.parse(body) feed.items.each do |item| # Put each item into an event - @logger.debug("Item", :item => item.author) case feed.feed_type when 'rss' handle_rss_response(queue, item) when 'atom' handle_atom_response(queue, item) @@ -112,10 +111,10 @@ @codec.decode(item.description) do |event| event.set("Feed", @url) event.set("published", item.pubDate) event.set("title", item.title) event.set("link", item.link) - event.set("author", item.author) + event.set("author", item.author) if !item.author.nil? decorate(event) queue << event end end end # class LogStash::Inputs::Exec