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/vilya/trunk@806 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Michael Bayne
2009-03-24 18:47:15 +00:00
parent 139e900b44
commit 3b70248329
5 changed files with 15 additions and 19 deletions
@@ -44,9 +44,8 @@ public abstract class CardGameController extends GameController
{
if (_ctx.getClient().getClientObject().receivers.containsKey(
CardGameDecoder.RECEIVER_CODE)) {
log.warning("Yuh oh, we already have a card game receiver " +
"registered and are trying for another...!");
Thread.dumpStack();
log.warning("Yuh oh, we already have a card game receiver registered and are trying " +
"for another...!", new Exception());
}
_ctx.getClient().getInvocationDirector().registerReceiver(new CardGameDecoder(this));
@@ -430,8 +430,8 @@ public class GameManager extends PlaceManager
{
// complain if we're already started
if (_gameobj.state == GameObject.IN_PLAY) {
log.warning("Requested to start an already in-play game [game=" + where() + "].");
Thread.dumpStack();
log.warning("Requested to start an already in-play game", "game", where(),
new Exception());
return false;
}