[cooja] Removed some further printlns

This commit is contained in:
Enrico Joerns 2014-10-02 02:11:41 +02:00
parent f02266d67c
commit 903d0333d3
2 changed files with 2 additions and 3 deletions

View File

@ -3152,7 +3152,7 @@ public class Cooja extends Observable {
if (new File(logConfigFile).exists()) {
DOMConfigurator.configure(logConfigFile);
} else {
System.err.println("Failed to open " + logConfigFile);
logger.error("Failed to open " + logConfigFile);
System.exit(1);
}
} else if (new File(LOG_CONFIG_FILE).exists()) {

View File

@ -165,8 +165,7 @@ public abstract class SerialUI extends Log implements SerialPort {
writeString(command);
}
} catch (Exception ex) {
System.err.println("could not send '" + command + "':");
ex.printStackTrace();
logger.error("could not send '" + command + "':", ex);
JOptionPane.showMessageDialog(
logTextPane,
"Could not send '" + command + "':\n" + ex.getMessage(), "Error sending message",