From ac0fe68ee08ae2e03767c11e3977c4c169a18c72 Mon Sep 17 00:00:00 2001 From: Eric House Date: Tue, 26 Feb 2019 15:03:55 -0800 Subject: [PATCH] logging toward finding who's sending or reporting 0 --- .../java/org/eehouse/android/xw4/CommsTransport.java | 9 ++++++--- .../main/java/org/eehouse/android/xw4/MultiMsgSink.java | 2 ++ .../main/java/org/eehouse/android/xw4/SMSService.java | 1 + 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/CommsTransport.java b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/CommsTransport.java index 85abbe41e..49e252a1c 100644 --- a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/CommsTransport.java +++ b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/CommsTransport.java @@ -379,14 +379,15 @@ public class CommsTransport implements TransportProcs, nSent = buf.length; } } else { - nSent = sendForAddr( m_context, addr, conType, m_rowid, - gameID, buf, msgID ); + nSent = sendForAddr( m_context, addr, conType, m_rowid, gameID, + buf, msgID ); } // Keep this while debugging why the resend_all that gets // fired on reconnect doesn't unstall a game but a manual // 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; } @@ -440,6 +441,8 @@ public class CommsTransport implements TransportProcs, Assert.fail(); break; } + Log.d( TAG, "sendForAddr(typ=%s, len=%d) => %d", conType, + buf.length, nSent ); return nSent; } diff --git a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/MultiMsgSink.java b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/MultiMsgSink.java index a1840390c..6144ebdab 100644 --- a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/MultiMsgSink.java +++ b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/MultiMsgSink.java @@ -117,6 +117,8 @@ public class MultiMsgSink implements TransportProcs { m_sentSet.add( msgID ); } + Log.d( TAG, "transportSend(len=%d, typ=%s) => %d", buf.length, + typ, nSent ); return nSent; } diff --git a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/SMSService.java b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/SMSService.java index 7367df9fa..b80c7bd90 100644 --- a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/SMSService.java +++ b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/SMSService.java @@ -213,6 +213,7 @@ public class SMSService extends XWService { } else { Log.i( TAG, "sendPacket: dropping because SMS disabled" ); } + Log.d( TAG, "sendPacket(len=%d) => %d", binmsg.length, nSent ); return nSent; }