瀏覽代碼

added want-interest-printout dconfig

Samir Naik 21 年之前
父節點
當前提交
d88b0b6411
共有 1 個文件被更改,包括 3 次插入1 次删除
  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":
                     del DoInterestManager._interests[handle]
 
-    if __debug__ and WantInterestPrintout:
+    if __debug__:
         def printInterests(self):
+            if not WantInterestPrintout:
+                return
             """
             Part of the new otp-server code.
             """