lib/syslogstash/syslog_reader.rb in syslogstash-3.0.1 vs lib/syslogstash/syslog_reader.rb in syslogstash-3.0.2

- old
+ new

@@ -67,9 +67,11 @@ private attr_reader :config, :logger def process_message(msg) + msg = msg.encode("UTF-8", invalid: :replace, undef: :replace) + if msg =~ /\A<(\d+)>(\w{3} [ 0-9]{2} [0-9:]{8}) (.*)\z/m flags = $1.to_i timestamp = $2 content = $3