NDT log tweaks

This commit is contained in:
zzz
2018-11-15 19:39:08 +00:00
parent 5fe2019897
commit 812baf8bd9
5 changed files with 15 additions and 23 deletions

View File

@ -50,7 +50,7 @@ public class JApplet extends JFrame{
showStatus( showStatus(
String str ) String str )
{ {
System.out.println( "status: " + str ); //System.out.println( "status: " + str );
} }
public void public void

View File

@ -33,7 +33,7 @@ JOptionPane
Object wha, Object wha,
String str ) String str )
{ {
System.out.println( "dialog: " + str ); //System.out.println( "dialog: " + str );
} }
public static void public static void
@ -43,7 +43,7 @@ JOptionPane
String str2, String str2,
int a ) int a )
{ {
System.out.println( "dialog: " + str1 + "/" + str2 ); //System.out.println( "dialog: " + str1 + "/" + str2 );
} }
} }

View File

@ -50,7 +50,7 @@ JTextArea
}else{ }else{
System.out.println( "text: " + str ); //System.out.println( "text: " + str );
} }
text += str; text += str;

View File

@ -50,7 +50,7 @@ StyledDocument
}else{ }else{
System.out.println( "doc: " + s ); //System.out.println( "doc: " + s );
} }
str += s; str += s;

View File

@ -1279,9 +1279,7 @@ public class Tcpbw100 extends JApplet implements ActionListener {
* @param msg String value of status * @param msg String value of status
* */ * */
public void showStatus(String msg) { public void showStatus(String msg) {
if (!_bIsApplication) { _log.warn(msg);
super.showStatus(msg);
}
} }
/** /**
@ -1449,9 +1447,8 @@ public class Tcpbw100 extends JApplet implements ActionListener {
// Get Client reported server IP // Get Client reported server IP
sClientSideServerIp = midSrvrSockObj.getInetAddress() + ""; sClientSideServerIp = midSrvrSockObj.getInetAddress() + "";
} catch (SecurityException e) { } catch (SecurityException e) {
System.err _log.warn("Unable to obtain Servers IP addresses: using "
.println("Unable to obtain Servers IP addresses: using " + sHostName, e);
+ sHostName);
_sErrMsg = "getInetAddress() called failed\n"; _sErrMsg = "getInetAddress() called failed\n";
sClientSideServerIp = sHostName; sClientSideServerIp = sHostName;
_resultsTxtPane.append(_resBundDisplayMsgs _resultsTxtPane.append(_resBundDisplayMsgs
@ -1468,8 +1465,7 @@ public class Tcpbw100 extends JApplet implements ActionListener {
try { try {
sClientSideClientIp = midSrvrSockObj.getLocalAddress() + ";"; sClientSideClientIp = midSrvrSockObj.getLocalAddress() + ";";
} catch (SecurityException e) { } catch (SecurityException e) {
System.err _log.warn("Unable to obtain local IP address: using 127.0.0.1", e);
.println("Unable to obtain local IP address: using 127.0.0.1");
_sErrMsg = "getLocalAddress() call failed\n"; _sErrMsg = "getLocalAddress() call failed\n";
sClientSideClientIp = NDTConstants.LOOPBACK_ADDRS_STRING + ";"; sClientSideClientIp = NDTConstants.LOOPBACK_ADDRS_STRING + ";";
} }
@ -1481,9 +1477,8 @@ public class Tcpbw100 extends JApplet implements ActionListener {
try { try {
_sMidBoxTestResult += midSrvrSockObj.getInetAddress() + ";"; _sMidBoxTestResult += midSrvrSockObj.getInetAddress() + ";";
} catch (SecurityException e) { } catch (SecurityException e) {
System.err _log.warn("Unable to obtain Servers IP addresses: using "
.println("Unable to obtain Servers IP addresses: using " + sHostName, e);
+ sHostName);
_sErrMsg = "getInetAddress() called failed\n"; _sErrMsg = "getInetAddress() called failed\n";
_sMidBoxTestResult += sHostName + ";"; _sMidBoxTestResult += sHostName + ";";
_resultsTxtPane.append(_resBundDisplayMsgs _resultsTxtPane.append(_resBundDisplayMsgs
@ -1496,8 +1491,7 @@ public class Tcpbw100 extends JApplet implements ActionListener {
try { try {
_sMidBoxTestResult += midSrvrSockObj.getLocalAddress() + ";"; _sMidBoxTestResult += midSrvrSockObj.getLocalAddress() + ";";
} catch (SecurityException e) { } catch (SecurityException e) {
System.err _log.warn("Unable to obtain local IP address: using 127.0.0.1", e);
.println("Unable to obtain local IP address: using 127.0.0.1");
_sErrMsg = "getLocalAddress() call failed\n"; _sErrMsg = "getLocalAddress() call failed\n";
_sMidBoxTestResult += NDTConstants.LOOPBACK_ADDRS_STRING + ";"; _sMidBoxTestResult += NDTConstants.LOOPBACK_ADDRS_STRING + ";";
} }
@ -2913,9 +2907,8 @@ public class Tcpbw100 extends JApplet implements ActionListener {
i++; i++;
} }
} catch (IOException e) { } catch (IOException e) {
System.err _log.warn("Couldn't complete tests while waiting for MSG_LOGOUT/MSG_RESULTS for "
.println("Couldn't complete tests while waiting for MSG_LOGOUT/MSG_RESULTS for " + sHostName, e);
+ sHostName);
_sErrMsg = "Couldn't complete tests while waiting for MSG_LOGOUT/MSG_RESULTS for " _sErrMsg = "Couldn't complete tests while waiting for MSG_LOGOUT/MSG_RESULTS for "
+ sHostName + ")\n"; + sHostName + ")\n";
_bFailed = true; _bFailed = true;
@ -2937,8 +2930,7 @@ public class Tcpbw100 extends JApplet implements ActionListener {
+ ": 127.0.0.1\n"); + ": 127.0.0.1\n");
_resultsTxtPane.append(_resBundDisplayMsgs _resultsTxtPane.append(_resBundDisplayMsgs
.getString("unableToObtainIP") + "\n"); .getString("unableToObtainIP") + "\n");
System.err _log.warn("Unable to obtain local IP address: using 127.0.0.1", e);
.println("Unable to obtain local IP address: using 127.0.0.1");
} }
try { try {