Browse Source

don't log stack traces of toon location store/delete on LIVE

Darren Ranalli 19 years ago
parent
commit
9d8ee1d2b3
1 changed files with 8 additions and 0 deletions
  1. 8 0
      direct/src/distributed/DoHierarchy.py

+ 8 - 0
direct/src/distributed/DoHierarchy.py

@@ -59,6 +59,10 @@ class DoHierarchy:
         return r
         return r
 
 
     def storeObjectLocation(self, do, parentId, zoneId):
     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
         doId = do.doId
         # until we figure out why Toontown is crashing with duplicate Toon generates, don't do the check on LIVE
         # until we figure out why Toontown is crashing with duplicate Toon generates, don't do the check on LIVE
         try:
         try:
@@ -78,6 +82,10 @@ class DoHierarchy:
             do.__class__.__name__, doId, parentId, zoneId))
             do.__class__.__name__, doId, parentId, zoneId))
 
 
     def deleteObjectLocation(self, do, 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
         doId = do.doId
         if doId not in self._allDoIds:
         if doId not in self._allDoIds:
             self.notify.error(
             self.notify.error(