Escape DEL character when tracing

DEL characters should be converted to [0x7f] in Wire traces otherwise they are difficult to see in logs.
This commit is contained in:
dowy 2019-05-30 10:49:59 +12:00 committed by Oleg Kalnichevski
parent 81c1bc4dc3
commit 91f9278b9a
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ public class Wire {
buffer.insert(0, header);
this.log.debug(this.id + " " + buffer.toString());
buffer.setLength(0);
} else if ((ch < 32) || (ch > 127)) {
} else if ((ch < 32) || (ch >= 127)) {
buffer.append("[0x");
buffer.append(Integer.toHexString(ch));
buffer.append("]");