lib/remote_syslog/reader.rb in remote_syslog-1.4.1 vs lib/remote_syslog/reader.rb in remote_syslog-1.4.2
- old
+ new
@@ -51,10 +51,10 @@
packet.content = message
if @parse_fields
if message =~ @parse_fields
packet.hostname = $2 if $2 && $2 != ''
- packet.tag = $3 if $3 && $2 != ''
+ packet.tag = $3 if $3 && $3 != ''
packet.content = $4 if $4 && $4 != ''
end
end
@socket.write(packet.assemble)