get rid of some logging

This commit is contained in:
Andy2 2011-02-22 06:54:03 -08:00
parent 030d2e76a7
commit 697fc7d5ca

View file

@ -60,8 +60,6 @@ public class NetUtils {
} catch( java.io.IOException ioe ) { } catch( java.io.IOException ioe ) {
Utils.logf( ioe.toString() ); Utils.logf( ioe.toString() );
} }
Utils.logf( "MakeProxySocket=>%s", null != socket
? socket.toString():"null" );
return socket; return socket;
} }
@ -140,16 +138,12 @@ public class NetUtils {
// total packet size // total packet size
outStream.writeShort( 2 + nBytes[0] + ids.length + 1 ); outStream.writeShort( 2 + nBytes[0] + ids.length + 1 );
Utils.logf( "total packet size: %d",
2 + nBytes[0] + ids.length );
outStream.writeByte( NetUtils.PROTOCOL_VERSION ); outStream.writeByte( NetUtils.PROTOCOL_VERSION );
outStream.writeByte( NetUtils.PRX_GET_MSGS ); outStream.writeByte( NetUtils.PRX_GET_MSGS );
// number of ids // number of ids
outStream.writeShort( ids.length ); outStream.writeShort( ids.length );
Utils.logf( "wrote count %d to proxy socket",
ids.length );
for ( String id : ids ) { for ( String id : ids ) {
outStream.writeBytes( id ); outStream.writeBytes( id );
@ -159,7 +153,6 @@ public class NetUtils {
DataInputStream dis = DataInputStream dis =
new DataInputStream(socket.getInputStream()); new DataInputStream(socket.getInputStream());
Utils.logf( "reading from proxy socket" );
short resLen = dis.readShort(); short resLen = dis.readShort();
short nameCount = dis.readShort(); short nameCount = dis.readShort();
byte[][][] msgs = null; byte[][][] msgs = null;
@ -167,7 +160,6 @@ public class NetUtils {
msgs = new byte[nameCount][][]; msgs = new byte[nameCount][][];
for ( int ii = 0; ii < nameCount; ++ii ) { for ( int ii = 0; ii < nameCount; ++ii ) {
short countsThisGame = dis.readShort(); short countsThisGame = dis.readShort();
Utils.logf( "msgCounts[%d]=%d", ii, countsThisGame );
if ( countsThisGame > 0 ) { if ( countsThisGame > 0 ) {
msgs[ii] = new byte[countsThisGame][]; msgs[ii] = new byte[countsThisGame][];
for ( int jj = 0; jj < countsThisGame; ++jj ) { for ( int jj = 0; jj < countsThisGame; ++jj ) {
@ -182,11 +174,8 @@ public class NetUtils {
} }
} }
socket.close(); socket.close();
Utils.logf( "closed proxy socket" );
if ( null == msgs ) { if ( null != msgs ) {
Utils.logf( "relay has no messages" );
} else {
ArrayList<String> idsWMsgs = ArrayList<String> idsWMsgs =
new ArrayList<String>( nameCount ); new ArrayList<String>( nameCount );
for ( int ii = 0; ii < nameCount; ++ii ) { for ( int ii = 0; ii < nameCount; ++ii ) {