@@ -224,7 +224,7 @@ def opendb(self, name, mode):
224224 # whichdb() function to do this
225225 if not db_type or hasattr (anydbm , 'whichdb' ):
226226 if __debug__ :
227- logging .getLogger ('hyperdb' ).debug (
227+ logging .getLogger ('roundup. hyperdb' ).debug (
228228 "opendb anydbm.open(%r, 'c')" % path )
229229 return anydbm .open (path , 'c' )
230230
@@ -236,7 +236,7 @@ def opendb(self, name, mode):
236236 raise hyperdb .DatabaseError (_ ("Couldn't open database - the "
237237 "required module '%s' is not available" )% db_type )
238238 if __debug__ :
239- logging .getLogger ('hyperdb' ).debug (
239+ logging .getLogger ('roundup. hyperdb' ).debug (
240240 "opendb %r.open(%r, %r)" % (db_type , path , mode ))
241241 return dbm .open (path , mode )
242242
@@ -297,7 +297,8 @@ def savenode(self, classname, nodeid, node):
297297 """ perform the saving of data specified by the set/addnode
298298 """
299299 if __debug__ :
300- logging .getLogger ('hyperdb' ).debug ('save %s%s %r' % (classname , nodeid , node ))
300+ logging .getLogger ('roundup.hyperdb' ).debug (
301+ 'save %s%s %r' % (classname , nodeid , node ))
301302 self .transactions .append ((self .doSaveNode , (classname , nodeid , node )))
302303
303304 def getnode (self , classname , nodeid , db = None , cache = 1 ):
@@ -310,14 +311,16 @@ def getnode(self, classname, nodeid, db=None, cache=1):
310311 cache_dict = self .cache .setdefault (classname , {})
311312 if nodeid in cache_dict :
312313 if __debug__ :
313- logging .getLogger ('hyperdb' ).debug ('get %s%s cached' % (classname , nodeid ))
314+ logging .getLogger ('roundup.hyperdb' ).debug (
315+ 'get %s%s cached' % (classname , nodeid ))
314316 self .stats ['cache_hits' ] += 1
315317 return cache_dict [nodeid ]
316318
317319 if __debug__ :
318320 self .stats ['cache_misses' ] += 1
319321 start_t = time .time ()
320- logging .getLogger ('hyperdb' ).debug ('get %s%s' % (classname , nodeid ))
322+ logging .getLogger ('roundup.hyperdb' ).debug (
323+ 'get %s%s' % (classname , nodeid ))
321324
322325 # get from the database and save in the cache
323326 if db is None :
@@ -349,7 +352,8 @@ def destroynode(self, classname, nodeid):
349352 """Remove a node from the database. Called exclusively by the
350353 destroy() method on Class.
351354 """
352- logging .getLogger ('hyperdb' ).info ('destroy %s%s' % (classname , nodeid ))
355+ logging .getLogger ('roundup.hyperdb' ).info (
356+ 'destroy %s%s' % (classname , nodeid ))
353357
354358 # remove from cache and newnodes if it's there
355359 if (classname in self .cache and nodeid in self .cache [classname ]):
@@ -472,7 +476,8 @@ def addjournal(self, classname, nodeid, action, params, creator=None,
472476 the current user.
473477 """
474478 if __debug__ :
475- logging .getLogger ('hyperdb' ).debug ('addjournal %s%s %s %r %s %r' % (classname ,
479+ logging .getLogger ('roundup.hyperdb' ).debug (
480+ 'addjournal %s%s %s %r %s %r' % (classname ,
476481 nodeid , action , params , creator , creation ))
477482 if creator is None :
478483 creator = self .getuid ()
@@ -482,8 +487,8 @@ def addjournal(self, classname, nodeid, action, params, creator=None,
482487 def setjournal (self , classname , nodeid , journal ):
483488 """Set the journal to the "journal" list."""
484489 if __debug__ :
485- logging .getLogger ('hyperdb' ).debug ('setjournal %s%s %r' % ( classname ,
486- nodeid , journal ))
490+ logging .getLogger ('roundup. hyperdb' ).debug (
491+ 'setjournal %s%s %r' % ( classname , nodeid , journal ))
487492 self .transactions .append ((self .doSetJournal , (classname , nodeid ,
488493 journal )))
489494
@@ -569,8 +574,8 @@ def pack(self, pack_before):
569574 packed += 1
570575 db [key ] = marshal .dumps (l )
571576
572- logging .getLogger ('hyperdb' ).info ('packed %d %s items' % ( packed ,
573- classname ))
577+ logging .getLogger ('roundup. hyperdb' ).info (
578+ 'packed %d %s items' % ( packed , classname ))
574579
575580 if db_type == 'gdbm' :
576581 db .reorganize ()
@@ -592,7 +597,7 @@ def commit(self, fail_ok=False):
592597
593598 The only backend this seems to affect is postgres.
594599 """
595- logging .getLogger ('hyperdb' ).info ('commit %s transactions' % (
600+ logging .getLogger ('roundup. hyperdb' ).info ('commit %s transactions' % (
596601 len (self .transactions )))
597602
598603 # keep a handle to all the database files opened
@@ -715,7 +720,7 @@ def doDestroyNode(self, classname, nodeid):
715720 def rollback (self ):
716721 """ Reverse all actions from the current transaction.
717722 """
718- logging .getLogger ('hyperdb' ).info ('rollback %s transactions' % (
723+ logging .getLogger ('roundup. hyperdb' ).info ('rollback %s transactions' % (
719724 len (self .transactions )))
720725
721726 for method , args in self .transactions :
0 commit comments