print out compact stack traces

This commit is contained in:
Darren Ranalli 2006-11-15 00:03:12 +00:00
parent 5797b16416
commit 65f087a170

View File

@ -59,6 +59,9 @@ class DoHierarchy:
return r
def storeObjectLocation(self, do, parentId, zoneId):
if do.__class__.__name__ == 'DistributedToon':
from direct.showbase.PythonUtil import StackTrace
print 'storeObjectLocation(DistributedToon %s)(%s, %s): %s' % (do.doId, parentId, zoneId, StackTrace().compact())
doId = do.doId
if doId in self._allDoIds:
self.notify.error(
@ -72,6 +75,9 @@ class DoHierarchy:
do.__class__.__name__, doId, parentId, zoneId))
def deleteObjectLocation(self, do, parentId, zoneId):
if do.__class__.__name__ == 'DistributedToon':
from direct.showbase.PythonUtil import StackTrace
print 'deleteObjectLocation(DistributedToon %s)(%s, %s): %s' % (do.doId, parentId, zoneId, StackTrace().compact())
doId = do.doId
if doId not in self._allDoIds:
self.notify.error(