From ac30923990d8a6fed55f0c2a8f410f7824705f35 Mon Sep 17 00:00:00 2001 From: Fredrik Osterlind Date: Tue, 22 Feb 2011 20:25:45 +0100 Subject: [PATCH] replacing unterminated binary data with warning log message --- tools/cooja/java/se/sics/cooja/dialogs/SerialUI.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/cooja/java/se/sics/cooja/dialogs/SerialUI.java b/tools/cooja/java/se/sics/cooja/dialogs/SerialUI.java index 48632ad3b..3fa13a9d2 100644 --- a/tools/cooja/java/se/sics/cooja/dialogs/SerialUI.java +++ b/tools/cooja/java/se/sics/cooja/dialogs/SerialUI.java @@ -346,7 +346,10 @@ public abstract class SerialUI extends Log implements SerialPort { } else { newMessage.append((char) data); if (newMessage.length() > MAX_LENGTH) { - logger.warn("Dropping too large log message (>" + MAX_LENGTH + " bytes)."); + /*logger.warn("Dropping too large log message (>" + MAX_LENGTH + " bytes).");*/ + lastLogMessage = "# [1024 bytes binary data]"; + this.setChanged(); + this.notifyObservers(getMote()); newMessage.setLength(0); } }