logging toward finding who's sending or reporting 0

This commit is contained in:
Eric House 2019-02-26 15:03:55 -08:00
parent 5f167e2a5e
commit ac0fe68ee0
3 changed files with 9 additions and 3 deletions

View file

@ -379,14 +379,15 @@ public class CommsTransport implements TransportProcs,
nSent = buf.length; nSent = buf.length;
} }
} else { } else {
nSent = sendForAddr( m_context, addr, conType, m_rowid, nSent = sendForAddr( m_context, addr, conType, m_rowid, gameID,
gameID, buf, msgID ); buf, msgID );
} }
// Keep this while debugging why the resend_all that gets // Keep this while debugging why the resend_all that gets
// fired on reconnect doesn't unstall a game but a manual // fired on reconnect doesn't unstall a game but a manual
// resend does. // resend does.
Log.d( TAG, "transportSend(%d)=>%d", buf.length, nSent ); Log.d( TAG, "transportSend(len=%d, typ=%s) => %d", buf.length,
conType, nSent );
return nSent; return nSent;
} }
@ -440,6 +441,8 @@ public class CommsTransport implements TransportProcs,
Assert.fail(); Assert.fail();
break; break;
} }
Log.d( TAG, "sendForAddr(typ=%s, len=%d) => %d", conType,
buf.length, nSent );
return nSent; return nSent;
} }

View file

@ -117,6 +117,8 @@ public class MultiMsgSink implements TransportProcs {
m_sentSet.add( msgID ); m_sentSet.add( msgID );
} }
Log.d( TAG, "transportSend(len=%d, typ=%s) => %d", buf.length,
typ, nSent );
return nSent; return nSent;
} }

View file

@ -213,6 +213,7 @@ public class SMSService extends XWService {
} else { } else {
Log.i( TAG, "sendPacket: dropping because SMS disabled" ); Log.i( TAG, "sendPacket: dropping because SMS disabled" );
} }
Log.d( TAG, "sendPacket(len=%d) => %d", binmsg.length, nSent );
return nSent; return nSent;
} }