mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-22 10:30:13 +00:00
replacing unterminated binary data with warning log message
This commit is contained in:
parent
990edbe32d
commit
ac30923990
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user