- set thread name for inputs by default

This commit is contained in:
Jordan Sissel 2011-04-04 01:01:24 -07:00
parent 9a7f67e99f
commit 0ecb528612

View file

@ -272,6 +272,7 @@ class LogStash::Agent
@inputs.each do |input|
@logger.info(["Starting input", input])
@threads[input] = Thread.new(input_target) do |input_target|
LogStash::Util::set_thread_name("input|#{input.inspect}")
input.logger = @logger
input.register
ready_queue << input