Mercurial > p > roundup > code
diff roundup/backends/back_bsddb.py @ 2514:091711fb2f8c
Initial logging integration: replace all debug prints with logging calls...
...clean up and replace some with info() logs.
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Fri, 02 Jul 2004 05:22:09 +0000 |
| parents | fc52d57c6c3e |
| children | a9e1fff1e793 |
line wrap: on
line diff
--- a/roundup/backends/back_bsddb.py Thu Jul 01 03:55:47 2004 +0000 +++ b/roundup/backends/back_bsddb.py Fri Jul 02 05:22:09 2004 +0000 @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -#$Id: back_bsddb.py,v 1.29 2004-02-11 23:55:08 richard Exp $ +#$Id: back_bsddb.py,v 1.30 2004-07-02 05:22:09 richard Exp $ '''This module defines a backend that saves the hyperdatabase in BSDDB. ''' __docformat__ = 'restructuredtext' @@ -55,18 +55,16 @@ '''Low-level database opener that gets around anydbm/dbm eccentricities. ''' - if __debug__: - print >>hyperdb.DEBUG, self, 'opendb', (self, name, mode) # determine which DB wrote the class file path = os.path.join(os.getcwd(), self.dir, name) if not os.path.exists(path): if __debug__: - print >>hyperdb.DEBUG, "opendb bsddb.open(%r, 'c')"%path + self.config.logging.getLogger('hyperdb').debug("opendb bsddb.open(%r, 'c')"%path) return bsddb.btopen(path, 'c') # open the database with the correct module if __debug__: - print >>hyperdb.DEBUG, "opendb bsddb.open(%r, %r)"%(path, mode) + self.config.logging.getLogger('hyperdb').debug("opendb bsddb.open(%r, %r)"%(path, mode)) return bsddb.btopen(path, mode) # @@ -78,9 +76,6 @@ Raise IndexError if the node doesn't exist (as per history()'s API) ''' - if __debug__: - print >>hyperdb.DEBUG, 'getjournal', (self, classname, nodeid) - # our journal result res = []
