lib/logstash/inputs/http_poller.rb in logstash-input-http_poller-3.3.2 vs lib/logstash/inputs/http_poller.rb in logstash-input-http_poller-3.3.3
- old
+ new
@@ -44,12 +44,11 @@
public
Schedule_types = %w(cron every at in)
def register
@host = Socket.gethostname.force_encoding(Encoding::UTF_8)
- @logger.info("Registering http_poller Input", :type => @type,
- :urls => @urls, :interval => @interval, :schedule => @schedule, :timeout => @timeout)
+ @logger.info("Registering http_poller Input", :type => @type, :interval => @interval, :schedule => @schedule, :timeout => @timeout)
setup_requests!
end
def stop
@@ -241,9 +240,16 @@
:exception_message => e.message,
:exception_backtrace => e.backtrace,
:name => name,
:url => request
)
+
+ @logger.debug? && @logger.debug("Cannot read URL or send the error as an event!",
+ :exception => e,
+ :exception_message => e.message,
+ :exception_backtrace => e.backtrace,
+ :name => name,
+ :url => request)
end
private
def apply_metadata(event, name, request, response=nil, execution_time=nil)
return unless @metadata_target