StreamLogger bug fix and added new line to JSONWriter flush function
This commit is contained in:
parent
e9715298b6
commit
f1e5e17d50
3 changed files with 18 additions and 24 deletions
|
|
@ -42,12 +42,12 @@ public class InputStreamLogger extends InputStream implements StreamLogger.LogCa
|
|||
}
|
||||
public int read(byte b[]) throws IOException {
|
||||
int n = in.read(b);
|
||||
log.log(b, 0, b.length);
|
||||
log.log(b, 0, n);
|
||||
return n;
|
||||
}
|
||||
public int read(byte b[], int off, int len) throws IOException {
|
||||
int n = in.read(b, off, len);
|
||||
log.log(b, off, len);
|
||||
log.log(b, off, n);
|
||||
return n;
|
||||
}
|
||||
public long skip(long n) throws IOException {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue