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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user