[CalendarServer-changes] [2608] CalendarServer/trunk/twistedcaldav/sql.py
source_changes at macosforge.org
source_changes at macosforge.org
Thu Jun 19 17:19:03 PDT 2008
Revision: 2608
http://trac.macosforge.org/projects/calendarserver/changeset/2608
Author: wsanchez at apple.com
Date: 2008-06-19 17:19:00 -0700 (Thu, 19 Jun 2008)
Log Message:
-----------
More info in log
Modified Paths:
--------------
CalendarServer/trunk/twistedcaldav/sql.py
Modified: CalendarServer/trunk/twistedcaldav/sql.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/sql.py 2008-06-19 21:02:43 UTC (rev 2607)
+++ CalendarServer/trunk/twistedcaldav/sql.py 2008-06-20 00:19:00 UTC (rev 2608)
@@ -55,6 +55,9 @@
self.persistent = persistent
self.autocommit = autocommit
+ def __repr__(self):
+ return "<%s %r>" % (self.__class__.__name__, self.dbpath)
+
def _db_version(self):
"""
@return: the schema version assigned to this index.
@@ -80,7 +83,7 @@
else:
self._db_connection = sqlite.connect(db_filename)
except:
- log.err("Unable to open database: %s" % (db_filename,))
+ log.err("Unable to open database: %s" % (self,))
raise
#
@@ -297,7 +300,7 @@
try:
q.execute(sql, query_params)
except:
- log.err("Exception while executing SQL: %r %r" % (sql, query_params))
+ log.err("Exception while executing SQL on DB %s: %r %r" % (self, sql, query_params))
raise
return q.fetchall()
finally:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20080619/0d99e5b6/attachment.htm
More information about the calendarserver-changes
mailing list