Log a stack trace for obscenely huge dirty regions.

If we're freaked out enough that we're carping & ignoring it, I want to
be able to actually figure out what's broken.

git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@906 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
Dave Hoover
2010-03-24 01:08:49 +00:00
parent b260dbe768
commit 6d5c7af519
@@ -78,7 +78,7 @@ public class RegionManager
// more sanity checking
long x = rect.x, y = rect.y;
if ((Math.abs(x) > Integer.MAX_VALUE/2) || (Math.abs(y) > Integer.MAX_VALUE/2)) {
log.warning("Requested to dirty questionable region", "rect", rect);
log.warning("Requested to dirty questionable region", "rect", rect, new Exception());
return; // Let's not do it!
}