]> git.pld-linux.org Git - packages/nagios-alert-jabber.git/commitdiff
- debugging fixes
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sun, 7 Sep 2008 19:44:09 +0000 (19:44 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    nagios-jabber.alert -> 1.14

nagios-jabber.alert

index 3bb5ea5a8b34ec8484fec354215f6b95de1b60b7..fe409769cc615e63983886a8cfe7bc4c718fc540 100644 (file)
@@ -13,6 +13,7 @@ import os
 import re
 import sys
 import getopt
+import logging
 import string
 import time
 import libxml2
@@ -112,6 +113,11 @@ class Client(JabberClient):
                        self.stream.send(msg)
                self.disconnect()
 
+       def stream_state_changed(self,state,arg):
+               if debug:
+                       print "*** State changed: %s %r ***" % (state,arg)
+
+
 c = Client(jid, password, server = server, port = port, auth_methods = ['sasl:DIGEST-MD5', 'sasl:PLAIN', 'digest'], tls_settings = TLSSettings(require = False, verify_peer = False))
 c.connect()
 try:
This page took 0.112516 seconds and 4 git commands to generate.