Varargified log calls.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5697 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2009-03-26 00:02:19 +00:00
parent 647a25dfdc
commit 688f2580ed
46 changed files with 231 additions and 272 deletions
@@ -96,7 +96,7 @@ public class BodyManager
}
// update their status!
log.debug("Setting user idle state [user=" + bobj.username + ", status=" + nstatus + "].");
log.debug("Setting user idle state", "user", bobj.username, "status", nstatus);
updateOccupantStatus(bobj, nstatus);
}
@@ -81,8 +81,8 @@ public class LocationManager
// make sure the place in question actually exists
PlaceManager pmgr = _plreg.getPlaceManager(placeOid);
if (pmgr == null) {
log.info("Requested to move to non-existent place [who=" + source.who() +
", placeOid=" + placeOid + "].");
log.info("Requested to move to non-existent place", "who", source.who(),
"placeOid", placeOid);
throw new InvocationException(NO_SUCH_PLACE);
}
@@ -90,8 +90,8 @@ public class LocationManager
// because we don't need to update anything in distributed object world
Place place = pmgr.getLocation();
if (place.equals(source.location)) {
log.debug("Going along with client request to move to where they already are " +
"[source=" + source.who() + ", place=" + place + "].");
log.debug("Going along with client request to move to where they already are",
"source", source.who(), "place", place);
return pmgr.getConfig();
}
@@ -164,7 +164,7 @@ public class PlaceRegistry
try {
pmgr.shutdown();
} catch (Exception e) {
log.warning("Place manager failed shutting down [where=" + pmgr.where() + "].", e);
log.warning("Place manager failed shutting down", "where", pmgr.where(), e);
}
}
}
@@ -222,7 +222,7 @@ public class PlaceRegistry
pmgr.startup(plobj);
} catch (Exception e) {
log.warning("Error starting place manager [obj=" + plobj + ", pmgr=" + pmgr + "].", e);
log.warning("Error starting place manager", "obj", plobj, "pmgr", pmgr, e);
}
return pmgr;
@@ -258,7 +258,7 @@ public class PlaceRegistry
int ploid = pmgr.getPlaceObject().getOid();
// remove it from the table
if (_pmgrs.remove(ploid) == null) {
log.warning("Requested to unmap unmapped place manager [pmgr=" + pmgr + "].");
log.warning("Requested to unmap unmapped place manager", "pmgr", pmgr);
// } else {
// Log.info("Unmapped place manager [class=" + pmgr.getClass().getName() +