tweak/reduce logging

This commit is contained in:
Eric House 2019-02-06 19:34:55 -08:00
parent 895b19a097
commit f5c9962b66
3 changed files with 5 additions and 6 deletions

View file

@ -627,7 +627,7 @@ public class BoardDelegate extends DelegateBase
m_handler = null; m_handler = null;
ConnStatusHandler.setHandler( null ); ConnStatusHandler.setHandler( null );
waitCloseGame( true ); waitCloseGame( true );
pauseGame(); pauseGame(); // sets m_jniThread to null
super.onPause(); super.onPause();
} }
@ -2896,7 +2896,8 @@ public class BoardDelegate extends DelegateBase
private void handleViaThread( JNICmd cmd, Object... args ) private void handleViaThread( JNICmd cmd, Object... args )
{ {
if ( null == m_jniThread ) { if ( null == m_jniThread ) {
Log.w( TAG, "not calling handle(%s)", cmd.toString() ); Log.w( TAG, "m_jniThread null: not calling m_jniThread.handle(%s)",
cmd.toString() );
DbgUtils.printStack( TAG ); DbgUtils.printStack( TAG );
} else { } else {
m_jniThread.handle( cmd, args ); m_jniThread.handle( cmd, args );

View file

@ -676,7 +676,6 @@ comms_makeFromStream( MPFORMAL XWStreamCtxt* stream, XW_UtilCtxt* util,
} else { } else {
comms->channelSeed = stream_getU16( stream ); comms->channelSeed = stream_getU16( stream );
CNO_FMT( cbuf, comms->channelSeed ); CNO_FMT( cbuf, comms->channelSeed );
XP_LOGF( "%s: loaded seed: %s(%d)", __func__, cbuf, comms->channelSeed );
} }
if ( STREAM_VERS_COMMSBACKOFF <= version ) { if ( STREAM_VERS_COMMSBACKOFF <= version ) {
comms->resendBackoff = stream_getU16( stream ); comms->resendBackoff = stream_getU16( stream );
@ -892,7 +891,6 @@ comms_writeToStream( CommsCtxt* comms, XWStreamCtxt* stream,
stream_putU16( stream, comms->nextChannelNo ); stream_putU16( stream, comms->nextChannelNo );
XP_U16 channelSeed = comms_getChannelSeed( comms ); /* force creation */ XP_U16 channelSeed = comms_getChannelSeed( comms ); /* force creation */
stream_putU16( stream, channelSeed ); stream_putU16( stream, channelSeed );
XP_LOGF( "%s: stored seed: %x(%d)", __func__, channelSeed, channelSeed );
stream_putU16( stream, comms->resendBackoff ); stream_putU16( stream, comms->resendBackoff );
stream_putU32( stream, comms->nextResend ); stream_putU32( stream, comms->nextResend );
if ( addr_hasType( &comms->addr, COMMS_CONN_RELAY ) ) { if ( addr_hasType( &comms->addr, COMMS_CONN_RELAY ) ) {

View file

@ -325,7 +325,7 @@ getNV( XWStreamCtxt* stream, ServerNonvolatiles* nv, XP_U16 nPlayers )
if ( STREAM_SAVE_PREVWORDS < version ) { if ( STREAM_SAVE_PREVWORDS < version ) {
nv->streamVersion = stream_getU8 ( stream ); nv->streamVersion = stream_getU8 ( stream );
} }
XP_LOGF( "%s: read streamVersion: 0x%x", __func__, nv->streamVersion ); /* XP_LOGF( "%s: read streamVersion: 0x%x", __func__, nv->streamVersion ); */
#endif #endif
} /* getNV */ } /* getNV */
@ -356,7 +356,7 @@ putNV( XWStreamCtxt* stream, const ServerNonvolatiles* nv, XP_U16 nPlayers )
} }
#ifdef STREAM_VERS_BIGBOARD #ifdef STREAM_VERS_BIGBOARD
stream_putU8( stream, nv->streamVersion ); stream_putU8( stream, nv->streamVersion );
XP_LOGF( "%s: wrote streamVersion: 0x%x", __func__, nv->streamVersion ); /* XP_LOGF( "%s: wrote streamVersion: 0x%x", __func__, nv->streamVersion ); */
#endif #endif
} /* putNV */ } /* putNV */