Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ public Resource getNext() throws ResourceParseException, IOException {
if(f == null) {
return current;
}
if(LOG.isLoggable(Level.INFO)) {
LOG.info(String.format("Extracting (%s) with (%s)\n",
if(LOG.isLoggable(Level.FINE)) {
LOG.fine(String.format("Extracting (%s) with (%s)\n",
current.getClass().toString(),
f.getClass().toString()));
}
Expand Down
16 changes: 8 additions & 8 deletions src/main/java/org/archive/format/gzip/GZIPMemberSeries.java
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public GZIPSeriesMember getNextMember() throws GZIPFormatException, IOException
throw new IOException("getNextMember() on IOException Stream at "
+ currentMemberStartOffset + " in " + streamContext);
}
LOG.info("getNextMember");
LOG.fine("getNextMember");

if(gotEOF) {
LOG.info("getNextMember-ATEOF");
Expand Down Expand Up @@ -208,9 +208,9 @@ public GZIPSeriesMember getNextMember() throws GZIPFormatException, IOException
while(currentMember == null) {
// scan ahead for another record start:
long amtSkipped = decoder.alignOnMagic3(this);
if(LOG.isLoggable(Level.INFO)) {
if(LOG.isLoggable(Level.FINE)) {

LOG.info("AlignedResult:" + amtSkipped);
LOG.fine("AlignedResult:" + amtSkipped);
}
if(amtSkipped < 0) {
gotEOF = true;
Expand Down Expand Up @@ -256,7 +256,7 @@ public GZIPSeriesMember getNextMember() throws GZIPFormatException, IOException
try {
currentMemberStartOffset = offset - 3;
header = decoder.parseHeader(this, true);
LOG.info("Read next GZip header...");
LOG.fine("Read next GZip header...");
currentMember = new GZIPSeriesMember(this,header);
state = STATE_DEFLATING;

Expand Down Expand Up @@ -290,8 +290,8 @@ public int read(byte[] b) throws IOException {

public int read(byte[] b, int off, int len) throws IOException {
int amtWritten = 0;
if(LOG.isLoggable(Level.INFO)) {
LOG.info("read("+len+" bytes) bufferSize("+bufferSize+")");
if(LOG.isLoggable(Level.FINE)) {
LOG.fine("read("+len+" bytes) bufferSize("+bufferSize+")");
}
while(len > 0) {
if(bufferSize > 0) {
Expand Down Expand Up @@ -340,8 +340,8 @@ public void returnBytes(int bytes) {
if((bytes > bufferPos) || (bytes < 0)) {
throw new IndexOutOfBoundsException();
}
if(LOG.isLoggable(Level.INFO)) {
LOG.info("Returned ("+bytes+")bytes");
if(LOG.isLoggable(Level.FINE)) {
LOG.fine("Returned ("+bytes+")bytes");
}
bufferPos -= bytes;
bufferSize += bytes;
Expand Down