lib/logstash/inputs/xmpp.rb in logstash-input-xmpp-3.0.1 vs lib/logstash/inputs/xmpp.rb in logstash-input-xmpp-3.1.1
- old
+ new
@@ -29,14 +29,10 @@
# The xmpp server to connect to. This is optional. If you omit this setting,
# the host on the user/identity is used. (`foo.com` for `user@foo.com`)
config :host, :validate => :string
- # Set to true to enable greater debugging in XMPP. Useful for debugging
- # network/authentication erros.
- config :debug, :validate => :boolean, :default => false, :deprecated => "Use the logstash --debug flag for this instead."
-
public
def initialize(config)
super
@client = Jabber::Client.new(Jabber::JID.new(@user))
@@ -45,10 +41,10 @@
# and for testing access
attr_reader :client, :muc_clients
def register
- Jabber::debug = true if @debug || @logger.debug?
+ Jabber::debug = true if @logger.debug?
client.connect(@host) # it is ok if host is nil
client.auth(@password.value)
client.send(Jabber::Presence.new.set_type(:available))
end # def register