- include log_type in a LogKeysResponse message

This commit is contained in:
Pete Fritchman 2009-10-19 07:42:10 +00:00
parent 4755c0ae1c
commit 4afa19646b
2 changed files with 2 additions and 0 deletions

View file

@ -11,6 +11,7 @@ module LogStash; module Net; module Messages
register register
# Message attributes # Message attributes
hashbind :log_type, "/args/log_type"
hashbind :types, "/args/types" hashbind :types, "/args/types"
end # class LogTypesResponse end # class LogTypesResponse
end; end; end # module LogStash::Net::Messages end; end; end # module LogStash::Net::Messages

View file

@ -78,6 +78,7 @@ module LogStash; module Net; module Servers
reader, search, qp = get_ferret(request.log_type) reader, search, qp = get_ferret(request.log_type)
response = LogStash::Net::Messages::LogKeysResponse.new response = LogStash::Net::Messages::LogKeysResponse.new
response.keys = reader.fields response.keys = reader.fields
response.log_type = request.log_type
yield response yield response
end end