[CalendarServer-changes] [5148] CalendarServer/branches/users/glyph/use-system-twisted/twistedcaldav /accesslog.py
source_changes at macosforge.org
source_changes at macosforge.org
Wed Feb 17 14:09:18 PST 2010
Revision: 5148
http://trac.macosforge.org/projects/calendarserver/changeset/5148
Author: glyph at apple.com
Date: 2010-02-17 14:09:16 -0800 (Wed, 17 Feb 2010)
Log Message:
-----------
Deal with unicode log messages (which really shouldn't be propagated this far anyway).
Modified Paths:
--------------
CalendarServer/branches/users/glyph/use-system-twisted/twistedcaldav/accesslog.py
Modified: CalendarServer/branches/users/glyph/use-system-twisted/twistedcaldav/accesslog.py
===================================================================
--- CalendarServer/branches/users/glyph/use-system-twisted/twistedcaldav/accesslog.py 2010-02-17 20:55:11 UTC (rev 5147)
+++ CalendarServer/branches/users/glyph/use-system-twisted/twistedcaldav/accesslog.py 2010-02-17 22:09:16 UTC (rev 5148)
@@ -391,6 +391,8 @@
if self.protocol is not None:
# XXX: Yeah we're not waiting for anything to happen here.
# but we will log an error.
+ if isinstance(message, unicode):
+ message = message.encode("utf-8")
d = self.protocol.callRemote(LogMessage, message=message)
d.addErrback(log.err)
else:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100217/e267fbec/attachment.html>
More information about the calendarserver-changes
mailing list