Permalink
Browse files

Turn down logging slightly in sample

  • Loading branch information...
1 parent c691d4f commit 137fe42808358a9ef255baad9ce724fb30be6ff9 Brock Noland committed Nov 21, 2012
View
1 conf/log4j.sample.properties
@@ -20,6 +20,7 @@
log4j.rootLogger=INFO,console
log4j.logger.com.cloudera.hadoop.hdfs.nfs = DEBUG
log4j.logger.com.cloudera.hadoop.hdfs.nfs.rpc.RPCBuffer = INFO
+log4j.logger.com.cloudera.hadoop.hdfs.nfs.nfs4.AsyncTaskExecutor = INFO
log4j.appender.console=org.apache.log4j.ConsoleAppender
log4j.appender.console.target=System.err
View
12 src/main/java/com/cloudera/hadoop/hdfs/nfs/nfs4/AsyncTaskExecutor.java
@@ -33,6 +33,12 @@
import com.google.common.util.concurrent.ThreadFactoryBuilder;
@SuppressWarnings({"rawtypes","unchecked"})
public class AsyncTaskExecutor<T> {
+ protected static final Logger LOGGER = Logger.getLogger(AsyncTaskExecutor.class);
+ private static final AtomicInteger instanceCounter = new AtomicInteger(0);
+
+ private final BlockingQueue queue;
+ private final ThreadPoolExecutor executor;
+
@VisibleForTesting
static class DelayedRunnable extends FutureTask<Void> implements Delayed {
private final long delayMS;
@@ -108,12 +114,6 @@ public void run() {
}
}
}
- protected static final Logger LOGGER = Logger.getLogger(AsyncTaskExecutor.class);
- private static final AtomicInteger instanceCounter = new AtomicInteger(0);
-
- private final BlockingQueue queue;
-
- private final ThreadPoolExecutor executor;
public AsyncTaskExecutor() {
queue = new DelayQueue();
/*

0 comments on commit 137fe42

Please sign in to comment.