Simplified logging facilities.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4131 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2006-05-19 22:47:44 +00:00
parent 98bbe02560
commit a22ca8b079
39 changed files with 286 additions and 358 deletions
@@ -6,8 +6,6 @@ import com.threerings.io.Streamable;
import com.threerings.util.StreamableArrayList;
import com.threerings.presents.Log;
/**
* A BoostrapData object is communicated back to the client
* after authentication has succeeded and after the server is fully
@@ -26,7 +24,8 @@ public class BootstrapData
// documentation inherited from interface Streamable
public function writeObject (out :ObjectOutputStream) :void
{
com.threerings.presents.Log.warning("This is client code: BootstrapData shouldn't be written");
Log.getLog(this).warning(
"This is client code: BootstrapData shouldn't be written");
}
// documentation inherited from interface Streamable
@@ -4,8 +4,6 @@ import com.threerings.io.ObjectInputStream;
import com.threerings.io.ObjectOutputStream;
import com.threerings.io.Streamable;
import com.threerings.presents.Log;
public /* abstract */ class DownstreamMessage
implements Streamable
{
@@ -17,8 +15,8 @@ public /* abstract */ class DownstreamMessage
// documentation inherited from interface Streamable
public function writeObject (out :ObjectOutputStream) :void
{
Log.warning("This is client code: Downstream messages shouldn't " +
"be written");
Log.getLog(this).warning(
"This is client code: Downstream messages shouldn't be written");
//out.writeShort(messageId);
}
@@ -6,8 +6,6 @@ import com.threerings.io.ObjectOutputStream;
import com.threerings.util.JavaConstants;
import com.threerings.presents.Log;
public /* abstract */ class UpstreamMessage
implements Streamable
{
@@ -35,7 +33,8 @@ public /* abstract */ class UpstreamMessage
// documentation inherited from interface Streamable
public function readObject (ins :ObjectInputStream) :void
{
Log.warning("This is client code: Upstream messages shouldn't be read");
Log.getLog(this).warning(
"This is client code: Upstream messages shouldn't be read");
//messageId = ins.readShort();
}