Browse Source

added want-interest-printout dconfig

Samir Naik 21 years ago
parent
commit
d88b0b6411
1 changed files with 3 additions and 1 deletions
  1. 3 1
      direct/src/distributed/DoInterestManager.py

+ 3 - 1
direct/src/distributed/DoInterestManager.py

@@ -128,8 +128,10 @@ class DoInterestManager(DirectObject.DirectObject):
                 if DoInterestManager._interests[handle][3] == "PendingDel":
                 if DoInterestManager._interests[handle][3] == "PendingDel":
                     del DoInterestManager._interests[handle]
                     del DoInterestManager._interests[handle]
 
 
-    if __debug__ and WantInterestPrintout:
+    if __debug__:
         def printInterests(self):
         def printInterests(self):
+            if not WantInterestPrintout:
+                return
             """
             """
             Part of the new otp-server code.
             Part of the new otp-server code.
             """
             """