You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by br...@apache.org on 2012/03/11 00:33:31 UTC
svn commit: r1299306 - /subversion/trunk/notes/directory-index/dirindex.py
Author: brane
Date: Sat Mar 10 23:33:30 2012
New Revision: 1299306
URL: http://svn.apache.org/viewvc?rev=1299306&view=rev
Log:
* notes/directory-index/dirindex.py: Move SQL logging below DEBUG level.
Modified:
subversion/trunk/notes/directory-index/dirindex.py
Modified: subversion/trunk/notes/directory-index/dirindex.py
URL: http://svn.apache.org/viewvc/subversion/trunk/notes/directory-index/dirindex.py?rev=1299306&r1=1299305&r2=1299306&view=diff
==============================================================================
--- subversion/trunk/notes/directory-index/dirindex.py (original)
+++ subversion/trunk/notes/directory-index/dirindex.py Sat Mar 10 23:33:30 2012
@@ -82,10 +82,10 @@ class Index(object):
def execute(self, statement, parameters=None):
if parameters is not None:
fmt = statement.replace("%", "%%").replace("?", "%r")
- logging.debug("EXECUTE\n" + fmt, *parameters)
+ logging.log(logging.DEBUG//2, "EXECUTE: " + fmt, *parameters)
return self.cursor.execute(statement, parameters)
else:
- logging.debug("EXECUTE\n%s", statement)
+ logging.log(logging.DEBUG//2, "EXECUTE: %s", statement)
return self.cursor.execute(statement)
__initialize = (
@@ -132,16 +132,16 @@ INSERT INTO dirindex (abspath, version,
self.rollback()
def commit(self):
- logging.debug("COMMIT")
+ logging.log(logging.DEBUG//2, "COMMIT")
return self.conn.commit()
def rollback(self):
- logging.debug("ROLLBACK")
+ logging.log(logging.DEBUG//2, "ROLLBACK")
return self.conn.rollback()
def close(self):
self.rollback()
- logging.debug("CLOSE")
+ logging.log(logging.DEBUG//2, "CLOSE")
return self.conn.close()
__get_revision = """\
@@ -244,7 +244,7 @@ class Revision(object):
def __enter__(self):
if self.revent is not None:
raise Error("revision is read-only")
- logging.debug("BEGIN")
+ logging.log(logging.DEBUG//2, "BEGIN")
self.revent = self.index.new_revision(
self.version, self.__created, self.__author, self.__log)
self.__context = {}