From 30e6d4943a2f684975070695f31b071112936135 Mon Sep 17 00:00:00 2001 From: fros4943 Date: Mon, 12 Jan 2009 10:44:36 +0000 Subject: [PATCH] changed compilation debug messages --- .../sics/cooja/contikimote/ContikiMoteTypeDialog.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/tools/cooja/java/se/sics/cooja/contikimote/ContikiMoteTypeDialog.java b/tools/cooja/java/se/sics/cooja/contikimote/ContikiMoteTypeDialog.java index 81baf704e..6f4e22022 100644 --- a/tools/cooja/java/se/sics/cooja/contikimote/ContikiMoteTypeDialog.java +++ b/tools/cooja/java/se/sics/cooja/contikimote/ContikiMoteTypeDialog.java @@ -26,7 +26,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: ContikiMoteTypeDialog.java,v 1.50 2008/12/03 15:18:47 fros4943 Exp $ + * $Id: ContikiMoteTypeDialog.java,v 1.51 2009/01/12 10:44:36 fros4943 Exp $ */ package se.sics.cooja.contikimote; @@ -400,7 +400,7 @@ public class ContikiMoteTypeDialog extends JDialog { Dimension newSize = new Dimension(); newSize.height = Math.min((int) maxSize.getHeight(), (int) myDialog.getSize().getHeight()); newSize.width = Math.min((int) maxSize.getWidth(), (int) myDialog.getSize().getWidth()); - logger.info("Resizing dialog: " + myDialog.getSize() + " -> " + newSize); + /*logger.info("Resizing dialog: " + myDialog.getSize() + " -> " + newSize);*/ myDialog.setSize(newSize); } @@ -1627,7 +1627,7 @@ public class ContikiMoteTypeDialog extends JDialog { errorStream.println(readLine); if (!GUI.isVisualized()) { - logger.warn("COMPILATION OUTPUT: " + readLine); + System.out.println("> " + readLine); } } } @@ -1657,6 +1657,11 @@ public class ContikiMoteTypeDialog extends JDialog { e.printStackTrace(); return false; } + + if (!GUI.isVisualized()) { + logger.info("Compilation done"); + } + return true; }