A bit 'o logging in places where it's handy and not too verbose.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2984 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,11 +1,13 @@
|
|||||||
//
|
//
|
||||||
// $Id: SceneDirector.java,v 1.26 2004/02/25 14:50:28 mdb Exp $
|
// $Id: SceneDirector.java,v 1.27 2004/03/10 16:20:04 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.whirled.client;
|
package com.threerings.whirled.client;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
||||||
import com.samskivert.util.HashIntMap;
|
import com.samskivert.util.HashIntMap;
|
||||||
import com.samskivert.util.ResultListener;
|
import com.samskivert.util.ResultListener;
|
||||||
|
import com.samskivert.util.StringUtil;
|
||||||
|
|
||||||
import com.threerings.presents.client.BasicDirector;
|
import com.threerings.presents.client.BasicDirector;
|
||||||
import com.threerings.presents.client.Client;
|
import com.threerings.presents.client.Client;
|
||||||
@@ -219,6 +221,9 @@ public class SceneDirector extends BasicDirector
|
|||||||
public void moveSucceededWithUpdates (
|
public void moveSucceededWithUpdates (
|
||||||
int placeId, PlaceConfig config, SceneUpdate[] updates)
|
int placeId, PlaceConfig config, SceneUpdate[] updates)
|
||||||
{
|
{
|
||||||
|
Log.info("Got updates [placeId=" + placeId + ", config=" + config +
|
||||||
|
", updates=" + StringUtil.toString(updates) + "].");
|
||||||
|
|
||||||
// apply the updates to our cached scene
|
// apply the updates to our cached scene
|
||||||
SceneModel model = loadSceneModel(_pendingSceneId);
|
SceneModel model = loadSceneModel(_pendingSceneId);
|
||||||
boolean failure = false;
|
boolean failure = false;
|
||||||
@@ -278,6 +283,10 @@ public class SceneDirector extends BasicDirector
|
|||||||
public void moveSucceededWithScene (
|
public void moveSucceededWithScene (
|
||||||
int placeId, PlaceConfig config, SceneModel model)
|
int placeId, PlaceConfig config, SceneModel model)
|
||||||
{
|
{
|
||||||
|
Log.info("Got updated scene model [placeId=" + placeId +
|
||||||
|
", config=" + config + ", scene=" + model.sceneId + "/" +
|
||||||
|
model.name + "/" + model.version + "].");
|
||||||
|
|
||||||
// update the model in the repository
|
// update the model in the repository
|
||||||
try {
|
try {
|
||||||
_screp.storeSceneModel(model);
|
_screp.storeSceneModel(model);
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: SpotSceneDirector.java,v 1.33 2004/02/25 14:50:28 mdb Exp $
|
// $Id: SpotSceneDirector.java,v 1.34 2004/03/10 16:20:04 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.whirled.spot.client;
|
package com.threerings.whirled.spot.client;
|
||||||
|
|
||||||
@@ -141,6 +141,7 @@ public class SpotSceneDirector extends BasicDirector
|
|||||||
}
|
}
|
||||||
|
|
||||||
// issue a traversePortal request
|
// issue a traversePortal request
|
||||||
|
Log.info("Issuing traversePortal(" + dest + ", " + sceneVer + ").");
|
||||||
_sservice.traversePortal(_ctx.getClient(), portalId, sceneVer, _scdir);
|
_sservice.traversePortal(_ctx.getClient(), portalId, sceneVer, _scdir);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user