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:
parent
81c1bc4dc3
commit
91f9278b9a
|
@ -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("]");
|
||||
|
|
Loading…
Reference in New Issue