From c42054ccacfe8d342d808654bf8eeb447f9937e8 Mon Sep 17 00:00:00 2001 From: Samir Naik Date: Tue, 8 Mar 2005 23:06:23 +0000 Subject: [PATCH] added want-interest-printout dconfig --- direct/src/distributed/DoInterestManager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/direct/src/distributed/DoInterestManager.py b/direct/src/distributed/DoInterestManager.py index 174d910faa..adef15d757 100755 --- a/direct/src/distributed/DoInterestManager.py +++ b/direct/src/distributed/DoInterestManager.py @@ -15,6 +15,7 @@ from direct.showbase import DirectObject from PyDatagram import PyDatagram #from PyDatagramIterator import PyDatagramIterator +WantInterestPrintout = base.config.GetInt("want-interest-printout", 0) class DoInterestManager(DirectObject.DirectObject): """ @@ -127,7 +128,7 @@ class DoInterestManager(DirectObject.DirectObject): if DoInterestManager._interests[handle][3] == "PendingDel": del DoInterestManager._interests[handle] - if __debug__: + if __debug__ and WantInterestPrintout: def printInterests(self): """ Part of the new otp-server code.