[CalendarServer-changes] [11591] CalendarServer/trunk/calendarserver/push/applepush.py

source_changes at macosforge.org source_changes at macosforge.org
Wed Aug 7 15:36:54 PDT 2013


Revision: 11591
          http://trac.calendarserver.org//changeset/11591
Author:   sagen at apple.com
Date:     2013-08-07 15:36:54 -0700 (Wed, 07 Aug 2013)
Log Message:
-----------
"payload" can contain curly braces, so fix the log call

Modified Paths:
--------------
    CalendarServer/trunk/calendarserver/push/applepush.py

Modified: CalendarServer/trunk/calendarserver/push/applepush.py
===================================================================
--- CalendarServer/trunk/calendarserver/push/applepush.py	2013-08-07 20:31:03 UTC (rev 11590)
+++ CalendarServer/trunk/calendarserver/push/applepush.py	2013-08-07 22:36:54 UTC (rev 11591)
@@ -365,8 +365,8 @@
             }
         )
         payloadLength = len(payload)
-        self.log.debug("Sending APNS notification to %s: id=%d payload=%s" %
-            (token, identifier, payload))
+        self.log.debug("Sending APNS notification to {token}: id={id} payload={payload}",
+            token=token, id=identifier, payload=payload)
 
         self.transport.write(
             struct.pack("!BIIH32sH%ds" % (payloadLength,),
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20130807/38ae9525/attachment.html>


More information about the calendarserver-changes mailing list