lib/logstash-logger/device.rb in logstash-logger-0.10.2 vs lib/logstash-logger/device.rb in logstash-logger-0.10.3
- old
+ new
@@ -33,10 +33,11 @@
end
end
def self.build_device(opts)
if parsed_uri_opts = parse_uri_config(opts)
- opts = parsed_uri_opts
+ opts.delete(:uri)
+ opts.merge!(parsed_uri_opts)
end
type = opts.delete(:type) || DEFAULT_TYPE
device_klass_for(type).new(opts)