assert debugs

This commit is contained in:
Joe Shochet 2004-07-09 22:39:53 +00:00
parent d7926f8735
commit 1f8a73a6c7
1 changed files with 4 additions and 3 deletions

View File

@ -101,10 +101,11 @@ class DistributedObject(PandaObject):
self.notify.error("Somebody decremented delayDelete for doId %s without incrementing"
% (self.doId))
elif (self.delayDeleteCount == 0):
self.notify.debug("delayDeleteCount for doId %s now 0" % (self.doId))
assert(self.notify.debug("delayDeleteCount for doId %s now 0"
% (self.doId)))
if self.deleteImminent:
self.notify.debug("delayDeleteCount for doId %s -- deleteImminent"
% (self.doId))
assert(self.notify.debug("delayDeleteCount for doId %s -- deleteImminent"
% (self.doId)))
self.disableAnnounceAndDelete()
else:
self.notify.debug("delayDeleteCount for doId %s now %s"