Skip to content

Commit

Permalink
Move parts of DEBUG logging to TRACE #126
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve O'Hara committed Sep 13, 2023
1 parent 87df3ae commit f56dd05
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,20 +69,20 @@ public class FastByteArrayInputStream extends InputStream {

@Override
public int read() throws IOException {
logger.debug("read()");
logger.debug("count={} pos={}", count, pos);
logger.trace("read()");
logger.trace("count={} pos={}", count, pos);
return (pos < count) ? (buf[pos++] & 0xff) : (-1);
}

@Override
public int read(byte[] toBuf) throws IOException {
logger.debug("read(byte[])");
logger.trace("read(byte[])");
return read(toBuf, 0, toBuf.length);
}

@Override
public int read(byte[] toBuf, int offset, int length) throws IOException {
logger.debug("read(byte[],int,int)");
logger.trace("read(byte[],int,int)");
int avail = count - pos;
if (avail <= 0) {
return -1;
Expand Down Expand Up @@ -117,16 +117,16 @@ public int getCount() {

@Override
public synchronized void mark(int readlimit) {
logger.debug("mark()");
logger.trace("mark()");
mark = pos;
logger.debug("mark={} pos={}", mark, pos);
logger.trace("mark={} pos={}", mark, pos);
}

@Override
public synchronized void reset() {
logger.debug("reset()");
logger.trace("reset()");
pos = mark;
logger.debug("mark={} pos={}", mark, pos);
logger.trace("mark={} pos={}", mark, pos);
}

@Override
Expand Down

0 comments on commit f56dd05

Please sign in to comment.