[CalendarServer-changes] [3699] CalendarServer/trunk/twistedcaldav/notify.py

source_changes at macosforge.org source_changes at macosforge.org
Fri Feb 20 09:37:50 PST 2009


Revision: 3699
          http://trac.macosforge.org/projects/calendarserver/changeset/3699
Author:   sagen at apple.com
Date:     2009-02-20 09:37:48 -0800 (Fri, 20 Feb 2009)
Log Message:
-----------
Since the default log level is warn, we're missing some key debugging info.  Bumping a few xmpp messages up to warn level.

Modified Paths:
--------------
    CalendarServer/trunk/twistedcaldav/notify.py

Modified: CalendarServer/trunk/twistedcaldav/notify.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/notify.py	2009-02-20 16:29:53 UTC (rev 3698)
+++ CalendarServer/trunk/twistedcaldav/notify.py	2009-02-20 17:37:48 UTC (rev 3699)
@@ -1076,7 +1076,7 @@
 class XMPPNotificationFactory(xmlstream.XmlStreamFactory, LoggingMixIn):
 
     def __init__(self, notifier, settings, reactor=None, keepAlive=True):
-        self.log_info("Setting up XMPPNotificationFactory")
+        self.log_warn("Setting up XMPPNotificationFactory")
 
         self.notifier = notifier
         self.settings = settings
@@ -1115,7 +1115,7 @@
 
     def connected(self, xmlStream):
         self.xmlStream = xmlStream
-        self.log_info("XMPP connection successful")
+        self.log_warn("XMPP connection successful")
         # Log all traffic
         xmlStream.rawDataInFn = self.rawDataIn
         xmlStream.rawDataOutFn = self.rawDataOut
@@ -1126,14 +1126,14 @@
         if self.presenceCall is not None:
             self.presenceCall.cancel()
             self.presenceCall = None
-        self.log_info("XMPP disconnected")
+        self.log_warn("XMPP disconnected")
 
     def initFailed(self, failure):
         self.xmlStream = None
-        self.log_info("XMPP Initialization failed: %s" % (failure,))
+        self.log_warn("XMPP Initialization failed: %s" % (failure,))
 
     def authenticated(self, xmlStream):
-        self.log_info("XMPP authentication successful: %s" % (self.jid,))
+        self.log_warn("XMPP authentication successful: %s" % (self.jid,))
         # xmlStream.addObserver('/message', self.handleMessage)
         self.sendPresence()
         self.notifier.streamOpened(xmlStream)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20090220/3f86aa57/attachment-0001.html>


More information about the calendarserver-changes mailing list