From 9a7220554fc6aca6502aa51251054995e185435c Mon Sep 17 00:00:00 2001 From: Eric House Date: Wed, 15 Jul 2015 07:24:40 -0700 Subject: [PATCH] print DevID as part of status header for relay, DEBUG builds only --- .../src/org/eehouse/android/xw4/ConnStatusHandler.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/ConnStatusHandler.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/ConnStatusHandler.java index f030afd74..a13c38e59 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/ConnStatusHandler.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/ConnStatusHandler.java @@ -185,8 +185,14 @@ public class ConnStatusHandler { R.string.connstat_net_fmt, connTypes.toString( context ))); for ( CommsConnType typ : connTypes.getTypes() ) { - sb.append( String.format( "\n\n*** %s ***\n", - typ.longName( context ) ) ); + String did = ""; + if ( BuildConfig.DEBUG + && CommsConnType.COMMS_CONN_RELAY == typ ) { + did = String.format( "(DevID: %d) ", + DevID.getRelayDevIDInt(context) ); + } + sb.append( String.format( "\n\n*** %s %s***\n", + typ.longName( context ), did ) ); SuccessRecord record = recordFor( typ, false ); tmp = LocUtils.getString( context, record.successNewer? R.string.connstat_succ :