mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-15 20:48:00 +01:00
remove some logging
This commit is contained in:
parent
1a8979c549
commit
85ed7c0e5f
6 changed files with 14 additions and 16 deletions
|
@ -399,6 +399,7 @@ object MQTTUtils {
|
|||
|
||||
override fun onDisconnected(context: MqttClientDisconnectedContext) {
|
||||
Log.d(TAG, "onDisconnected(cause=${context.getCause()})")
|
||||
// try: context.getCause().printStackTrace()
|
||||
updateStatus(false)
|
||||
mStats.updateState(false)
|
||||
}
|
||||
|
@ -478,8 +479,8 @@ object MQTTUtils {
|
|||
.callback(this@Conn)
|
||||
.send()
|
||||
.whenComplete{ ack, throwable ->
|
||||
// Log.d( TAG, "$this.whenComplete(); topic=$mTopic, "
|
||||
// + "ack=$ack, err=$throwable")
|
||||
Log.d( TAG, "$this.whenComplete(); topic=$mTopic, "
|
||||
+ "ack=$ack, err=$throwable")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -95,9 +95,8 @@ abstract class XWFragment: Fragment(), Delegator {
|
|||
|
||||
fun onCreate( dlgt: DelegateBase, sis: Bundle?, hasOptionsMenu: Boolean )
|
||||
{
|
||||
Log.d( TAG, "%H/%s.onCreate() called", this, this::class.java.getSimpleName() )
|
||||
mHasOptionsMenu = hasOptionsMenu
|
||||
this.onCreate( dlgt, sis )
|
||||
onCreate( dlgt, sis )
|
||||
}
|
||||
|
||||
fun onCreate( dlgt: DelegateBase, sis: Bundle? )
|
||||
|
|
|
@ -1090,7 +1090,7 @@ elemToStream( MsgQueueElem* elem, void* closure )
|
|||
|
||||
stream_putU32VL( stream, elem->smp.len );
|
||||
stream_putU32( stream, elem->smp.createdStamp );
|
||||
COMMS_LOGFF( "writing msg elem with sum: %s", elem->sb.buf );
|
||||
COMMS_LOGFFV( "writing msg elem with sum: %s", elem->sb.buf );
|
||||
if ( 0 == elem->smp.len ) {
|
||||
XP_ASSERT( 0 == elem->msgID );
|
||||
XWStreamCtxt* nliStream = mem_stream_make_raw( MPPARM(comms->mpool)
|
||||
|
@ -1937,8 +1937,8 @@ printElem( MsgQueueElem* elem, void* closure )
|
|||
{
|
||||
int* iip = (int*)closure;
|
||||
CNO_FMT( cbuf, elem->channelNo );
|
||||
XP_LOGFF( "%d: %s; msgID=" XP_LD "; sum=%s",
|
||||
*iip, cbuf, elem->msgID, elem->sb.buf );
|
||||
XP_LOGFFV( "%d: %s; msgID=" XP_LD "; sum=%s",
|
||||
*iip, cbuf, elem->msgID, elem->sb.buf );
|
||||
++*iip;
|
||||
return FEA_OK;
|
||||
}
|
||||
|
@ -1966,7 +1966,7 @@ _assertQueueOk( const CommsCtxt* comms, const char* XP_UNUSED(func) )
|
|||
XP_ASSERT(0);
|
||||
}
|
||||
if ( count >= 10 ) {
|
||||
COMMS_LOGFF( "queueLen unexpectedly high: %d", count );
|
||||
COMMS_LOGFFV( "queueLen unexpectedly high: %d", count );
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2130,8 +2130,8 @@ checkPrevProc( MsgQueueElem* elem, void* closure )
|
|||
&& (cpsp->elem->channelNo & CHANNEL_MASK) == (elem->channelNo & CHANNEL_MASK) ) {
|
||||
if ( 0 == cpsp->elem->msgID || elem->msgID < cpsp->elem->msgID ) {
|
||||
++cpsp->count;
|
||||
XP_LOGFF( "found one! their id: %d; my id: %d", elem->msgID,
|
||||
cpsp->elem->msgID );
|
||||
XP_LOGFFV( "found one! their id: %d; my id: %d", elem->msgID,
|
||||
cpsp->elem->msgID );
|
||||
}
|
||||
}
|
||||
return FEA_OK;
|
||||
|
@ -2318,7 +2318,6 @@ send_relay_ack( CommsCtxt* comms, XWEnv xwe )
|
|||
XP_S16
|
||||
comms_resendAll( CommsCtxt* comms, XWEnv xwe, CommsConnType filter, XP_Bool force )
|
||||
{
|
||||
COMMS_LOGFF( "(force=%s)", boolToStr(force) );
|
||||
XP_S16 count = 0;
|
||||
XP_ASSERT( !!comms );
|
||||
|
||||
|
@ -2363,7 +2362,7 @@ comms_resendAll( CommsCtxt* comms, XWEnv xwe, CommsConnType filter, XP_Bool forc
|
|||
COMMS_LOGFF( "backoff now %d", comms->resendBackoff );
|
||||
comms->nextResend = now + comms->resendBackoff;
|
||||
}
|
||||
COMMS_LOGFF( TAGFMT() "=> %d", TAGPRMS, count );
|
||||
COMMS_LOGFF( TAGFMT() "(force=%s) => %d", TAGPRMS, boolToStr(force), count );
|
||||
return count;
|
||||
}
|
||||
|
||||
|
|
|
@ -1152,7 +1152,7 @@ dvc_getPhoniesFor( XW_DUtilCtxt* dutil, XWEnv xwe, const XP_UCHAR* code,
|
|||
void
|
||||
dvc_onTimerFired( XW_DUtilCtxt* dutil, XWEnv xwe, TimerKey key )
|
||||
{
|
||||
XP_LOGFF( "(key: %d)", key );
|
||||
// XP_LOGFF( "(key: %d)", key );
|
||||
tmr_fired( dutil, xwe, key );
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -239,7 +239,7 @@ setStoreTimerLocked( XW_DUtilCtxt* dutil, XWEnv xwe )
|
|||
tmr_set( dutil, xwe, inWhenMS, onStoreTimer, dutil );
|
||||
XP_LOGFF( "tmr_set() => %d", key );
|
||||
} else {
|
||||
XP_LOGFF( "timer already set" );
|
||||
// XP_LOGFF( "timer already set" );
|
||||
}
|
||||
#else
|
||||
XP_USE(dutil);
|
||||
|
|
|
@ -88,7 +88,7 @@ static void
|
|||
timerFired( XW_DUtilCtxt* XP_UNUSED_DBG(dutil), XWEnv xwe, TimerState* timer,
|
||||
XP_Bool fired )
|
||||
{
|
||||
XP_LOGFF( "(timer=%p); key=%d", timer, timer->key );
|
||||
// XP_LOGFF( "(timer=%p); key=%d", timer, timer->key );
|
||||
(*timer->proc)( timer->closure, xwe, fired );
|
||||
XP_FREE( dutil->mpool, timer );
|
||||
}
|
||||
|
@ -114,7 +114,6 @@ findByKeyProc( const DLHead* elem, void* closure )
|
|||
void
|
||||
tmr_fired( XW_DUtilCtxt* dutil, XWEnv xwe, TimerKey key )
|
||||
{
|
||||
XP_LOGFF( "(key=%d)", key );
|
||||
TimerMgrState* timersState = (TimerMgrState*)dutil->timersState;
|
||||
XP_ASSERT( !!timersState );
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue