Catch exceptions in a few tender places during creation of a place and try

to log information.
There was an exception in here somewhere that froze a big tourney last week
but the stack trace was optimized out by hotspot (damn thee!). Hopefully
this will at least narrow it down, and possibly prevent total brokenness.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3681 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2005-08-12 22:22:13 +00:00
parent 6e07b60f48
commit de892e0187
@@ -237,12 +237,25 @@ public class PlaceRegistry
_pmgrs.put(plobj.getOid(), pmgr);
// start the place manager up with the newly created place object
pmgr.startup(plobj);
try {
pmgr.startup(plobj);
} catch (Exception e) {
Log.warning("Error starting place manager [obj=" + object +
", pmgr=" + pmgr + "].");
Log.logStackTrace(e);
}
// inform the creation observer that the place object was created
// and provided to the manager
if (observer != null) {
observer.placeCreated(plobj, pmgr);
try {
observer.placeCreated(plobj, pmgr);
} catch (Exception e) {
Log.warning("Error informing CreationObserver of place " +
"[obj=" + object + ", pmgr=" + pmgr + ", obs=" + observer +
"].");
Log.logStackTrace(e);
}
}
}