Browse Source

print to notify

Dave Schuyler 20 years ago
parent
commit
fef3bab197

+ 2 - 2
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

+ 11 - 5
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()