always print comms_stats (if DEBUG)

This commit is contained in:
Eric House 2019-12-12 22:01:49 -08:00
parent 0493ad2ef8
commit 84b3c65373

View file

@ -237,6 +237,10 @@ public class ConnStatusHandler {
}
}
}
if ( BuildConfig.DEBUG ) {
sb.append("\n").append( XwJNI.comms_getStats( gamePtr ) );
}
msg = sb.toString();
}
return msg;
@ -676,10 +680,7 @@ public class ConnStatusHandler {
result = String.format( "DevID: %d; host: %s; latest FCM: %s",
DevID.getRelayDevIDInt(context),
XWPrefs.getDefaultRelayHost(context),
fcmMsg )
+ "\n"
+ XwJNI.comms_getStats( gamePtr );
fcmMsg );
break;
case COMMS_CONN_P2P:
result = WiDirService.formatNetStateInfo();