mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-05 20:45:49 +01:00
SMS play logs too much: remove non-error logging.
This commit is contained in:
parent
32d7daf2b5
commit
8b5ec28120
1 changed files with 0 additions and 7 deletions
|
@ -388,7 +388,6 @@ public class SMSService extends Service {
|
||||||
int count = (msg.length() + (MAX_LEN_TEXT-1)) / MAX_LEN_TEXT;
|
int count = (msg.length() + (MAX_LEN_TEXT-1)) / MAX_LEN_TEXT;
|
||||||
String[] result = new String[count];
|
String[] result = new String[count];
|
||||||
int msgID = ++s_nSent % 0x000000FF;
|
int msgID = ++s_nSent % 0x000000FF;
|
||||||
DbgUtils.logf( "preparing %d packets for msgid %x", count, msgID );
|
|
||||||
|
|
||||||
int start = 0;
|
int start = 0;
|
||||||
int end = 0;
|
int end = 0;
|
||||||
|
@ -400,7 +399,6 @@ public class SMSService extends Service {
|
||||||
end += len;
|
end += len;
|
||||||
result[ii] = String.format( "0:%X:%X:%X:%s", msgID, ii, count,
|
result[ii] = String.format( "0:%X:%X:%X:%s", msgID, ii, count,
|
||||||
msg.substring( start, end ) );
|
msg.substring( start, end ) );
|
||||||
DbgUtils.logf( "fragment[%d]: %s", ii, result[ii] );
|
|
||||||
start = end;
|
start = end;
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
@ -505,7 +503,6 @@ public class SMSService extends Service {
|
||||||
|
|
||||||
private void disAssemble( String senderPhone, String fullMsg )
|
private void disAssemble( String senderPhone, String fullMsg )
|
||||||
{
|
{
|
||||||
DbgUtils.logf( "disAssemble()" );
|
|
||||||
byte[] data = XwJNI.base64Decode( fullMsg );
|
byte[] data = XwJNI.base64Decode( fullMsg );
|
||||||
DataInputStream dis =
|
DataInputStream dis =
|
||||||
new DataInputStream( new ByteArrayInputStream(data) );
|
new DataInputStream( new ByteArrayInputStream(data) );
|
||||||
|
@ -564,8 +561,6 @@ public class SMSService extends Service {
|
||||||
for ( String fragment : fragments ) {
|
for ( String fragment : fragments ) {
|
||||||
String asPublic = toPublicFmt( fragment );
|
String asPublic = toPublicFmt( fragment );
|
||||||
mgr.sendTextMessage( phone, null, asPublic, sent, delivery );
|
mgr.sendTextMessage( phone, null, asPublic, sent, delivery );
|
||||||
DbgUtils.logf( "Message \"%s\" of %d bytes sent to %s.",
|
|
||||||
asPublic, asPublic.length(), phone );
|
|
||||||
}
|
}
|
||||||
if ( s_showToasts ) {
|
if ( s_showToasts ) {
|
||||||
DbgUtils.showf( this, "sent %dth msg", s_nSent );
|
DbgUtils.showf( this, "sent %dth msg", s_nSent );
|
||||||
|
@ -707,7 +702,6 @@ public class SMSService extends Service {
|
||||||
public int transportSend( byte[] buf, final CommsAddrRec addr, int gameID )
|
public int transportSend( byte[] buf, final CommsAddrRec addr, int gameID )
|
||||||
{
|
{
|
||||||
int nSent = -1;
|
int nSent = -1;
|
||||||
DbgUtils.logf( "SMSMsgSink.transportSend()" );
|
|
||||||
if ( null != addr ) {
|
if ( null != addr ) {
|
||||||
nSent = sendPacket( addr.sms_phone, gameID, buf );
|
nSent = sendPacket( addr.sms_phone, gameID, buf );
|
||||||
} else {
|
} else {
|
||||||
|
@ -750,7 +744,6 @@ public class SMSService extends Service {
|
||||||
public boolean isComplete()
|
public boolean isComplete()
|
||||||
{
|
{
|
||||||
boolean complete = m_msgs.length == m_haveCount;
|
boolean complete = m_msgs.length == m_haveCount;
|
||||||
DbgUtils.logf( "isComplete(msg %d)=>%b", m_msgID, complete );
|
|
||||||
return complete;
|
return complete;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue