lib/logstash-logger/device.rb in logstash-logger-0.6.0 vs lib/logstash-logger/device.rb in logstash-logger-0.6.1

- old
+ new

@@ -13,9 +13,10 @@ autoload :Redis, 'logstash-logger/device/redis' autoload :File, 'logstash-logger/device/file' autoload :Stdout, 'logstash-logger/device/stdout' def self.new(opts) + opts = opts.dup type = opts.delete(:type) || DEFAULT_TYPE device_klass_for(type).new(opts) end