LoggerOutputStream: Trimmed extra newlines before logging.
This commit is contained in:
parent
b9fa0d0bbf
commit
a186d6a09d
@ -68,7 +68,7 @@ public class LoggerOutputStream extends OutputStream {
|
|||||||
|
|
||||||
final byte[] messageBytes = new byte[count];
|
final byte[] messageBytes = new byte[count];
|
||||||
System.arraycopy(buffer, 0, messageBytes, 0, count);
|
System.arraycopy(buffer, 0, messageBytes, 0, count);
|
||||||
final String message = new String(messageBytes);
|
final String message = new String(messageBytes).trim();
|
||||||
synchronized(logger) {
|
synchronized(logger) {
|
||||||
switch (level) {
|
switch (level) {
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user