lib/logstash-logger/device.rb in logstash-logger-0.6.1 vs lib/logstash-logger/device.rb in logstash-logger-0.6.2
- old
+ new
@@ -20,10 +20,10 @@
device_klass_for(type).new(opts)
end
def self.device_klass_for(type)
- case type
+ case type.to_sym
when :udp then UDP
when :tcp then TCP
when :unix then Unix
when :file then File
when :redis then Redis