Changed a bunch of Thread.dumpStack() calls into stack traces properly logged
via the logging system. git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@788 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
@@ -129,8 +129,7 @@ public class CharacterSprite extends ImageSprite
|
||||
{
|
||||
// sanity check
|
||||
if (action == null) {
|
||||
log.warning("Refusing to set null action sequence " + this + ".");
|
||||
Thread.dumpStack();
|
||||
log.warning("Refusing to set null action sequence " + this + ".", new Exception());
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -147,8 +146,7 @@ public class CharacterSprite extends ImageSprite
|
||||
{
|
||||
if (orient < 0 || orient >= FINE_DIRECTION_COUNT) {
|
||||
log.info("Refusing to set invalid orientation [sprite=" + this +
|
||||
", orient=" + orient + "].");
|
||||
Thread.dumpStack();
|
||||
", orient=" + orient + "].", new Exception());
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -285,8 +283,7 @@ public class CharacterSprite extends ImageSprite
|
||||
if (_descrip.getComponentIds() == null ||
|
||||
_descrip.getComponentIds().length == 0) {
|
||||
log.warning("Invalid character descriptor [sprite=" + this +
|
||||
", descrip=" + _descrip + "].");
|
||||
Thread.dumpStack();
|
||||
", descrip=" + _descrip + "].", new Exception());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user