mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
- style
This commit is contained in:
parent
9bf5efdfcc
commit
44e9bb54b7
1 changed files with 2 additions and 5 deletions
|
@ -97,14 +97,11 @@ class LogStash::Event
|
|||
val = uri if uri
|
||||
if val.is_a?(URI)
|
||||
@data["@source"] = val.to_s
|
||||
maybe_new_source_host = val.host
|
||||
@data["@source_host"] = val.host if @data["@source_host"].nil?
|
||||
@data["@source_path"] = val.path
|
||||
else
|
||||
@data["@source"] = val
|
||||
maybe_new_source_host = val
|
||||
end
|
||||
if !@data["@source_host"]
|
||||
@data["@source_host"] = maybe_new_source_host
|
||||
@data["@source_host"] = val.host if @data["@source_host"].nil?
|
||||
end
|
||||
end # def source=
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue