[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()) { if (new File(logConfigFile).exists()) {
DOMConfigurator.configure(logConfigFile); DOMConfigurator.configure(logConfigFile);
} else { } else {
System.err.println("Failed to open " + logConfigFile); logger.error("Failed to open " + logConfigFile);
System.exit(1); System.exit(1);
} }
} else if (new File(LOG_CONFIG_FILE).exists()) { } else if (new File(LOG_CONFIG_FILE).exists()) {

View file

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