LoggerOutputStream: Trimmed extra newlines before logging.

This commit is contained in:
Jonathan Bernard 2012-11-22 16:02:56 -06:00
parent b9fa0d0bbf
commit a186d6a09d

View File

@ -68,7 +68,7 @@ public class LoggerOutputStream extends OutputStream {
final byte[] messageBytes = new byte[count];
System.arraycopy(buffer, 0, messageBytes, 0, count);
final String message = new String(messageBytes);
final String message = new String(messageBytes).trim();
synchronized(logger) {
switch (level) {
default: