From fef3bab197b1b3e022ef749f9a3a26c6f770ba14 Mon Sep 17 00:00:00 2001 From: Dave Schuyler Date: Sat, 18 Jun 2005 04:12:10 +0000 Subject: [PATCH] print to notify --- .../distributed/DistributedCartesianGridAI.py | 4 ++-- direct/src/distributed/DoInterestManager.py | 16 +++++++++++----- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/direct/src/distributed/DistributedCartesianGridAI.py b/direct/src/distributed/DistributedCartesianGridAI.py index 1b78fa7dcf..6448a6f64f 100755 --- a/direct/src/distributed/DistributedCartesianGridAI.py +++ b/direct/src/distributed/DistributedCartesianGridAI.py @@ -32,7 +32,7 @@ class DistributedCartesianGridAI(DistributedNodeAI.DistributedNodeAI, return 1 def getParentingRules(self): - print "calling getter" + self.notify.debug("calling getter") rule = ("%i%s%i%s%i" % (self.startingZone, self.RuleSeparator, self.gridSize, self.RuleSeparator, self.gridRadius)) @@ -40,7 +40,7 @@ class DistributedCartesianGridAI(DistributedNodeAI.DistributedNodeAI, # Reparent and setLocation on av to DistributedOceanGrid def addObjectToGrid(self, av, useZoneId=-1): - print "setting parent to grid %s" % self + self.notify.debug("setting parent to grid %s" % self) avId = av.doId # Create a grid parent diff --git a/direct/src/distributed/DoInterestManager.py b/direct/src/distributed/DoInterestManager.py index 9bd8557cd5..3815d2eb09 100755 --- a/direct/src/distributed/DoInterestManager.py +++ b/direct/src/distributed/DoInterestManager.py @@ -202,18 +202,24 @@ class DoInterestManager(DirectObject.DirectObject): id = di.getUint16() scope = di.getUint32() expect_scope = self.getInterestScopeId(id) - print "handleInterestDoneMessage--> Received ID:%s Scope:%s"%(id,scope); + self.notify.debug( + "handleInterestDoneMessage--> Received ID:%s Scope:%s"%(id,scope)) if expect_scope == scope: - print "handleInterestDoneMessage--> Scope Match:%s Scope:%s"%(id,scope); + self.notify.debug( + "handleInterestDoneMessage--> Scope Match:%s Scope:%s" + %(id,scope)) event = self.getInterestScopeEvent(id) if event is not None: - print "handleInterestDoneMessage--> Send Event : %s"%(event); + self.notify.debug( + "handleInterestDoneMessage--> Send Event : %s"%(event)) messenger.send(event) else: - print "handleInterestDoneMessage--> No Event "; + self.notify.debug("handleInterestDoneMessage--> No Event ") self._ponderRemoveFlaggedInterest(id) else: - print "handleInterestDoneMessage--> Scope MisMatch :%s :%s"%(expect_scope,scope); + self.notify.debug( + "handleInterestDoneMessage--> Scope MisMatch :%s :%s" + %(expect_scope,scope)) assert self.printInterestsIfDebug()