Permalink
Browse files

Use a logger in ZStream

  • Loading branch information...
1 parent db97e4e commit efabc3c28549209ab060bed785ca6541b2e35474 @CruzBishop CruzBishop committed Apr 15, 2012
Showing with 7 additions and 2 deletions.
  1. +7 −2 common/src/main/java/io/netty/util/internal/jzlib/ZStream.java
@@ -47,9 +47,14 @@
*/
package io.netty.util.internal.jzlib;
+import io.netty.logging.InternalLogger;
+import io.netty.logging.InternalLoggerFactory;
import io.netty.util.internal.jzlib.JZlib.WrapperType;
public final class ZStream {
+
+ private static final InternalLogger logger =
+ InternalLoggerFactory.getInstance(ZStream.class);
public byte[] next_in; // next input byte
public int next_in_index;
@@ -181,10 +186,10 @@ void flush_pending() {
next_out.length <= next_out_index ||
dstate.pending_buf.length < dstate.pending_out + len ||
next_out.length < next_out_index + len) {
- System.out.println(dstate.pending_buf.length + ", " +
+ logger.info(dstate.pending_buf.length + ", " +
dstate.pending_out + ", " + next_out.length + ", " +
next_out_index + ", " + len);
- System.out.println("avail_out=" + avail_out);
+ logger.info("avail_out=" + avail_out);
}
System.arraycopy(dstate.pending_buf, dstate.pending_out, next_out,

0 comments on commit efabc3c

Please sign in to comment.