Added convenient where() method to PlaceManager which is used when logging

errors to report the "place" in which the error happen. The SceneManager
overrides this to include scene information. Scrupulous use will make log
messages much more scrutable.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1514 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2002-06-20 22:12:23 +00:00
parent d88e6bc490
commit fadf226677
2 changed files with 23 additions and 7 deletions
@@ -1,5 +1,5 @@
//
// $Id: SceneManager.java,v 1.9 2001/12/14 01:51:46 mdb Exp $
// $Id: SceneManager.java,v 1.10 2002/06/20 22:12:23 mdb Exp $
package com.threerings.whirled.server;
@@ -85,6 +85,12 @@ public class SceneManager extends PlaceManager
_screg.unmapSceneManager(this);
}
// documentation inherited
protected String where ()
{
return _scene.getName() + " (" + super.where() + ")";
}
// documentation inherited
protected void toString (StringBuffer buf)
{