[CalendarServer-changes] [2635] CalendarServer/branches/sqlpropstore-2629/twistedcaldav/sqlprops.py
source_changes at macosforge.org
source_changes at macosforge.org
Fri Jun 27 10:52:02 PDT 2008
Revision: 2635
http://trac.macosforge.org/projects/calendarserver/changeset/2635
Author: cdaboo at apple.com
Date: 2008-06-27 10:52:02 -0700 (Fri, 27 Jun 2008)
Log Message:
-----------
Make logging a little more useful.
Modified Paths:
--------------
CalendarServer/branches/sqlpropstore-2629/twistedcaldav/sqlprops.py
Modified: CalendarServer/branches/sqlpropstore-2629/twistedcaldav/sqlprops.py
===================================================================
--- CalendarServer/branches/sqlpropstore-2629/twistedcaldav/sqlprops.py 2008-06-27 02:10:06 UTC (rev 2634)
+++ CalendarServer/branches/sqlpropstore-2629/twistedcaldav/sqlprops.py 2008-06-27 17:52:02 UTC (rev 2635)
@@ -288,8 +288,8 @@
return result
def __init__(self, path, use_cache=True):
- path = os.path.join(path, SQLPropertiesDatabase.dbFilename)
- super(SQLPropertiesDatabase, self).__init__(path, True, utf8=True)
+ dbpath = os.path.join(path, SQLPropertiesDatabase.dbFilename)
+ super(SQLPropertiesDatabase, self).__init__(dbpath, True, utf8=True)
self.use_cache = use_cache
self.cache = {}
@@ -298,7 +298,7 @@
SQLPropertiesDatabase._debug_instance += 1
#self.instance = "%s - %s" % (path[105:-len(SQLPropertiesDatabase.dbFilename)], _instance,)
self.instance = "%s" % (_instance,)
- log.debug("[%s]: Created instance" % (self.instance,))
+ log.debug("[%s]: Created instance for %s" % (self.instance, path,))
def cacheAllChildProperties(self):
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20080627/40d6e8d8/attachment.html
More information about the calendarserver-changes
mailing list