Skip to content

Commit

Permalink
Fix uninitialized constants
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmo0920 committed Jul 28, 2016
1 parent 5a56ca8 commit 9eeae50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/fluent/plugin/in_syslog.rb
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,11 @@ def listen(callback)
client = ServerEngine::SocketManager::Client.new(socket_manager_path)
if @protocol_type == :udp
@usock = client.listen_udp(@bind, @port)
SocketUtil::UdpHandler.new(@usock, log, @message_length_limit, callback)
Fluent::SocketUtil::UdpHandler.new(@usock, log, @message_length_limit, callback)
else
# syslog family add "\n" to each message and this seems only way to split messages in tcp stream
lsock = client.listen_tcp(@bind, @port)
Coolio::TCPServer.new(lsock, nil, SocketUtil::TcpHandler, log, "\n", callback)
Coolio::TCPServer.new(lsock, nil, Fluent::SocketUtil::TcpHandler, log, "\n", callback)
end
end

Expand Down

0 comments on commit 9eeae50

Please sign in to comment.