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:
@@ -68,14 +68,13 @@ public class RegionManager
|
||||
{
|
||||
// make sure we're on an AWT thread
|
||||
if (!EventQueue.isDispatchThread()) {
|
||||
log.warning("Oi! Region dirtied on non-AWT thread [rect=" + rect + "].");
|
||||
Thread.dumpStack();
|
||||
log.warning("Oi! Region dirtied on non-AWT thread [rect=" + rect + "].",
|
||||
new Exception());
|
||||
}
|
||||
|
||||
// sanity check
|
||||
if (rect == null) {
|
||||
log.warning("Attempt to dirty a null rect!?");
|
||||
Thread.dumpStack();
|
||||
log.warning("Attempt to dirty a null rect!?", new Exception());
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -98,8 +97,7 @@ public class RegionManager
|
||||
{
|
||||
if (width < 0 || height < 0) {
|
||||
log.warning("Attempt to add invalid dirty region?! " +
|
||||
"[size=" + width + "x" + height + "].");
|
||||
Thread.dumpStack();
|
||||
"[size=" + width + "x" + height + "].", new Exception());
|
||||
return false;
|
||||
|
||||
} else if (width == 0 || height == 0) {
|
||||
|
||||
Reference in New Issue
Block a user