Skip to content

Commit

Permalink
info -> trace
Browse files Browse the repository at this point in the history
  • Loading branch information
belaban committed May 14, 2004
1 parent 23a63f2 commit fb99ed7
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/org/jgroups/protocols/COMPRESS.java
Expand Up @@ -18,7 +18,7 @@
* Compresses the payload of a message. Goal is to reduce the number of messages sent across the wire.
* Should ideally be layered somewhere above a fragmentation protocol (e.g. FRAG).
* @author Bela Ban
* @version $Id: COMPRESS.java,v 1.4 2004/04/23 19:36:12 belaban Exp $
* @version $Id: COMPRESS.java,v 1.5 2004/05/14 13:33:56 belaban Exp $
*/
public class COMPRESS extends Protocol {

Expand Down Expand Up @@ -93,8 +93,8 @@ public void up(Event evt) {
inflater.setInput(compressed_payload, msg.getOffset(), msg.getLength());
try {
inflater.inflate(uncompressed_payload);

if(log.isInfoEnabled()) log.info("uncompressed " + compressed_payload.length + " bytes to " +
if(log.isTraceEnabled())
log.trace("uncompressed " + compressed_payload.length + " bytes to " +
original_size + " bytes");
msg.setBuffer(uncompressed_payload);
}
Expand Down Expand Up @@ -132,9 +132,8 @@ public void down(Event evt) {
System.arraycopy(compressed_payload, 0, new_payload, 0, compressed_size);
msg.setBuffer(new_payload);
msg.putHeader(name, new CompressHeader(length));

if(log.isInfoEnabled()) log.info("compressed payload from " + length + " bytes to " +
compressed_size + " bytes");
if(log.isTraceEnabled())
log.trace("compressed payload from " + length + " bytes to " + compressed_size + " bytes");
}
}
passDown(evt);
Expand Down

0 comments on commit fb99ed7

Please sign in to comment.