From 9d8ee1d2b3c2cdec77f72dab2fec90ad58a93ad2 Mon Sep 17 00:00:00 2001 From: Darren Ranalli Date: Tue, 21 Nov 2006 04:18:29 +0000 Subject: [PATCH] don't log stack traces of toon location store/delete on LIVE --- direct/src/distributed/DoHierarchy.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/direct/src/distributed/DoHierarchy.py b/direct/src/distributed/DoHierarchy.py index 7e839f47b4..5575cac5a6 100755 --- a/direct/src/distributed/DoHierarchy.py +++ b/direct/src/distributed/DoHierarchy.py @@ -59,6 +59,10 @@ class DoHierarchy: return r def storeObjectLocation(self, do, parentId, zoneId): + if do.__class__.__name__ == 'DistributedToon': + if not base.cr.isLive(): + from direct.showbase.PythonUtil import StackTrace + self.notify.info('storeObjectLocation(DistributedToon %s)(%s, %s): %s' % (do.doId, parentId, zoneId, StackTrace().compact())) doId = do.doId # until we figure out why Toontown is crashing with duplicate Toon generates, don't do the check on LIVE try: @@ -78,6 +82,10 @@ class DoHierarchy: do.__class__.__name__, doId, parentId, zoneId)) def deleteObjectLocation(self, do, parentId, zoneId): + if do.__class__.__name__ == 'DistributedToon': + if not base.cr.isLive(): + from direct.showbase.PythonUtil import StackTrace + self.notify.info('deleteObjectLocation(DistributedToon %s)(%s, %s): %s' % (do.doId, parentId, zoneId, StackTrace().compact())) doId = do.doId if doId not in self._allDoIds: self.notify.error(