Minor changes to previous fix. Log runnable, event or message that is being posted to the inactive queue. Remove instanceof check since the invoker will always be of the expected type
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5495 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -202,7 +202,8 @@ public class PresentsDObjectMgr
|
|||||||
public void postEvent (DEvent event)
|
public void postEvent (DEvent event)
|
||||||
{
|
{
|
||||||
if (!_running) {
|
if (!_running) {
|
||||||
log.warning("Posting message to inactive object manager", new Exception());
|
log.warning(
|
||||||
|
"Posting message to inactive object manager", "event", event, new Exception());
|
||||||
}
|
}
|
||||||
|
|
||||||
// assign the event's id and append it to the queue
|
// assign the event's id and append it to the queue
|
||||||
@@ -278,7 +279,8 @@ public class PresentsDObjectMgr
|
|||||||
public void postRunnable (Runnable unit)
|
public void postRunnable (Runnable unit)
|
||||||
{
|
{
|
||||||
if (!_running) {
|
if (!_running) {
|
||||||
log.warning("Posting runnable to inactive object manager", new Exception());
|
log.warning(
|
||||||
|
"Posting runnable to inactive object manager", "unit", unit, new Exception());
|
||||||
}
|
}
|
||||||
|
|
||||||
// just append it to the queue
|
// just append it to the queue
|
||||||
|
|||||||
@@ -161,14 +161,8 @@ public class PresentsServer
|
|||||||
|
|
||||||
// Make the client manager shut down before the invoker and dobj threads. This will help
|
// Make the client manager shut down before the invoker and dobj threads. This will help
|
||||||
// application code to avoid long chains of shutdown constraints (e.g. msoy bureau manager).
|
// application code to avoid long chains of shutdown constraints (e.g. msoy bureau manager).
|
||||||
// TODO: is this check needed?
|
_shutmgr.addConstraint(
|
||||||
if (_invoker instanceof PresentsInvoker) {
|
_clmgr, ShutdownManager.Constraint.RUNS_BEFORE, (PresentsInvoker)_invoker);
|
||||||
_shutmgr.addConstraint(
|
|
||||||
_clmgr, ShutdownManager.Constraint.RUNS_BEFORE, (PresentsInvoker)_invoker);
|
|
||||||
|
|
||||||
} else {
|
|
||||||
log.warning("Invoker is not a PresentsInvoker", "invoker", _invoker);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -866,7 +866,8 @@ public class ConnectionManager extends LoopingThread
|
|||||||
void postMessage (Connection conn, DownstreamMessage msg)
|
void postMessage (Connection conn, DownstreamMessage msg)
|
||||||
{
|
{
|
||||||
if (!isRunning()) {
|
if (!isRunning()) {
|
||||||
log.warning("Posting message to inactive connection manager", new Exception());
|
log.warning(
|
||||||
|
"Posting message to inactive connection manager", "msg", msg, new Exception());
|
||||||
}
|
}
|
||||||
|
|
||||||
// sanity check
|
// sanity check
|
||||||
|
|||||||
Reference in New Issue
Block a user