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:
Michael Bayne
2009-03-24 18:46:59 +00:00
parent fdfa3aa2e5
commit 8f6e10af8f
12 changed files with 37 additions and 50 deletions
@@ -382,8 +382,7 @@ public class ColorPository implements Serializable
return crec;
}
}
log.warning("No such color class [class=" + className + "].");
Thread.dumpStack();
log.warning("No such color class [class=" + className + "].", new Exception());
return null;
}
@@ -397,10 +396,8 @@ public class ColorPository implements Serializable
// if they request color class zero, we assume they're just
// decoding a blank colorprint, otherwise we complain
if (classId != 0) {
log.warning("Requested unknown color class " +
"[classId=" + classId +
", colorId=" + colorId + "].");
Thread.dumpStack();
log.warning("Requested unknown color class [classId=" + classId +
", colorId=" + colorId + "].", new Exception());
}
return null;
}
@@ -414,9 +411,8 @@ public class ColorPository implements Serializable
{
ClassRecord record = getClassRecord(className);
if (record == null) {
log.warning("Requested unknown color class " +
"[className=" + className + ", colorName=" + colorName + "].");
Thread.dumpStack();
log.warning("Requested unknown color class [className=" + className +
", colorName=" + colorName + "].", new Exception());
return null;
}