remove some logging

This commit is contained in:
Eric House 2019-02-28 19:28:41 -08:00
parent 415ce0f5a2
commit 07e4cb8573

View file

@ -218,7 +218,7 @@ public class RelayService extends XWJIService
private static void enqueueWork( Context context, Intent intent ) private static void enqueueWork( Context context, Intent intent )
{ {
enqueueWork( context, RelayService.class, sJobID, intent ); enqueueWork( context, RelayService.class, sJobID, intent );
Log.d( TAG, "called enqueueWork(cmd=%s)", cmdFrom( intent, MsgCmds.values() ) ); // Log.d( TAG, "called enqueueWork(cmd=%s)", cmdFrom( intent, MsgCmds.values() ) );
} }
private static void stopService( Context context ) private static void stopService( Context context )
@ -394,13 +394,13 @@ public class RelayService extends XWJIService
} }
resetExitTimer(); resetExitTimer();
Log.d( TAG, "%s.onHandleWork(cmd=%s) DONE", this, cmdFrom( intent ) ); // Log.d( TAG, "%s.onHandleWork(cmd=%s) DONE", this, cmdFrom( intent ) );
} }
@Override @Override
public void onDestroy() public void onDestroy()
{ {
Log.d( TAG, "onDestroy() called" ); // Log.d( TAG, "onDestroy() called" );
if ( null != mReadThread ) { if ( null != mReadThread ) {
mReadThread.unsetService(); mReadThread.unsetService();
@ -412,12 +412,12 @@ public class RelayService extends XWJIService
if ( shouldMaintainConnection() ) { if ( shouldMaintainConnection() ) {
long interval_millis = getMaxIntervalSeconds() * 1000; long interval_millis = getMaxIntervalSeconds() * 1000;
RelayReceiver.setTimer( this, interval_millis ); RelayReceiver.setTimer( this, interval_millis );
Log.d( TAG, "onDestroy(): rescheduling in %d ms", // Log.d( TAG, "onDestroy(): rescheduling in %d ms",
interval_millis ); // interval_millis );
} }
super.onDestroy(); super.onDestroy();
Log.d( TAG, "%s.onDestroy() DONE", this ); // Log.d( TAG, "%s.onDestroy() DONE", this );
} }
@Override @Override
@ -832,7 +832,7 @@ public class RelayService extends XWJIService
private void noteSent( PacketData packet, boolean fromUDP ) private void noteSent( PacketData packet, boolean fromUDP )
{ {
Log.d( TAG, "noteSent(packet=%s, fromUDP=%b)", packet, fromUDP ); // Log.d( TAG, "noteSent(packet=%s, fromUDP=%b)", packet, fromUDP );
if ( fromUDP ) { if ( fromUDP ) {
packet.setSentMS(); packet.setSentMS();
} }
@ -1676,7 +1676,7 @@ public class RelayService extends XWJIService
long interval = Utils.getCurSeconds() - m_lastGamePacketReceived; long interval = Utils.getCurSeconds() - m_lastGamePacketReceived;
result = interval < MAX_KEEPALIVE_SECS; result = interval < MAX_KEEPALIVE_SECS;
} }
Log.d( TAG, "shouldMaintainConnection=>%b", result ); // Log.d( TAG, "shouldMaintainConnection=>%b", result );
return result; return result;
} }