[CalendarServer-changes] [3680] CalendarServer/branches/users/cdaboo/directory-cache-on-demand-3672/ twistedcaldav/directory
source_changes at macosforge.org
source_changes at macosforge.org
Wed Feb 18 11:52:02 PST 2009
Revision: 3680
http://trac.macosforge.org/projects/calendarserver/changeset/3680
Author: cdaboo at apple.com
Date: 2009-02-18 11:52:00 -0800 (Wed, 18 Feb 2009)
Log Message:
-----------
A little bit more logging.
Modified Paths:
--------------
CalendarServer/branches/users/cdaboo/directory-cache-on-demand-3672/twistedcaldav/directory/cachingappleopendirectory.py
CalendarServer/branches/users/cdaboo/directory-cache-on-demand-3672/twistedcaldav/directory/cachingdirectory.py
Modified: CalendarServer/branches/users/cdaboo/directory-cache-on-demand-3672/twistedcaldav/directory/cachingappleopendirectory.py
===================================================================
--- CalendarServer/branches/users/cdaboo/directory-cache-on-demand-3672/twistedcaldav/directory/cachingappleopendirectory.py 2009-02-18 04:31:48 UTC (rev 3679)
+++ CalendarServer/branches/users/cdaboo/directory-cache-on-demand-3672/twistedcaldav/directory/cachingappleopendirectory.py 2009-02-18 19:52:00 UTC (rev 3680)
@@ -451,6 +451,7 @@
listRecordTypes,
attrs,
)
+ self.log_debug("opendirectory.queryRecordsWithAttribute_list matched records: %s" % (len(results),))
except opendirectory.ODError, ex:
self.log_error("Open Directory (node=%s) error: %s" % (self.realmName, str(ex)))
raise
Modified: CalendarServer/branches/users/cdaboo/directory-cache-on-demand-3672/twistedcaldav/directory/cachingdirectory.py
===================================================================
--- CalendarServer/branches/users/cdaboo/directory-cache-on-demand-3672/twistedcaldav/directory/cachingdirectory.py 2009-02-18 04:31:48 UTC (rev 3679)
+++ CalendarServer/branches/users/cdaboo/directory-cache-on-demand-3672/twistedcaldav/directory/cachingdirectory.py 2009-02-18 19:52:00 UTC (rev 3680)
@@ -206,9 +206,11 @@
# Now try again from cache
record = lookup()
if record:
+ self.log_debug("Found record for attribute '%s' with value '%s'" % (indexType, indexKey,))
return record
# Add to negative cache with timestamp
+ self.log_debug("Failed to fault record for attribute '%s' with value '%s'" % (indexType, indexKey,))
self._disabledKeys[indexType][indexKey] = time.time()
return None
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20090218/16b6c721/attachment.html>
More information about the calendarserver-changes
mailing list