Skip to content

Commit

Permalink
specific requires in register
Browse files Browse the repository at this point in the history
  • Loading branch information
fetep committed Jul 16, 2012
1 parent a128ae6 commit 300aa4a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/logstash/inputs/log4j.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
require "logstash/util/socket_peer"
require "socket"
require "timeout"
require "java"
require "jruby/serialization"

# Read events over a TCP socket from Log4j SocketAppender.
#
Expand Down Expand Up @@ -39,6 +37,9 @@ def initialize(*args)

public
def register
require "java"
require "jruby/serialization"

if server?
@logger.info("Starting Log4j input listener", :address => "#{@host}:#{@port}")
@server_socket = TCPServer.new(@host, @port)
Expand Down

0 comments on commit 300aa4a

Please sign in to comment.