[CalendarServer-changes] [3678] CalendarServer/branches/users/wsanchez/deployment/twistedcaldav/ accesslog.py
source_changes at macosforge.org
source_changes at macosforge.org
Tue Feb 17 20:14:59 PST 2009
Revision: 3678
http://trac.macosforge.org/projects/calendarserver/changeset/3678
Author: cdaboo at apple.com
Date: 2009-02-17 20:14:59 -0800 (Tue, 17 Feb 2009)
Log Message:
-----------
Protect against attribute error.
Modified Paths:
--------------
CalendarServer/branches/users/wsanchez/deployment/twistedcaldav/accesslog.py
Modified: CalendarServer/branches/users/wsanchez/deployment/twistedcaldav/accesslog.py
===================================================================
--- CalendarServer/branches/users/wsanchez/deployment/twistedcaldav/accesslog.py 2009-02-17 17:02:38 UTC (rev 3677)
+++ CalendarServer/branches/users/wsanchez/deployment/twistedcaldav/accesslog.py 2009-02-18 04:14:59 UTC (rev 3678)
@@ -113,9 +113,14 @@
(time.time() - request.initTime) * 1000,
)
if config.MoreAccessLogData:
+ try:
+ serverInstance = request.chanRequest.transport.server.port
+ except AttributeError:
+ serverInstance = "Unknown"
+
format_str += ' [%d %d]'
format_data += (
- request.chanRequest.transport.server.port,
+ serverInstance,
request.chanRequest.channel.factory.outstandingRequests,
)
self.logMessage(format_str % format_data)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20090217/8f1363fe/attachment-0001.html>
More information about the calendarserver-changes
mailing list