Thread.dumpStack() circumvents whatever logging is configured and writes
directly to stderr. Logging an exception with the associated warning does the right thing and logs the stack trace via the logging system. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5318 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -218,9 +218,8 @@ public class PresentsDObjectMgr
|
||||
public <T extends DObject> T registerObject (T object)
|
||||
{
|
||||
if (_dobjThread != null && !isDispatchThread()) {
|
||||
log.warning("Registering DObject on non-dobject thread: " +
|
||||
"[class=" + object.getClass().getName() + "]");
|
||||
Thread.dumpStack();
|
||||
log.warning("Registering DObject on non-dobject thread",
|
||||
"class", object.getClass().getName(), new Exception());
|
||||
}
|
||||
|
||||
int oid = getNextOid();
|
||||
|
||||
Reference in New Issue
Block a user