Improved logging

This commit is contained in:
2012-01-23 12:53:28 +01:00
parent 112396ef71
commit 5c9b4ec6ab

View File

@@ -28,6 +28,7 @@ import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
import java.util.concurrent.TimeUnit;
import java.util.logging.Level;
import java.util.logging.Logger;
import ch.psi.fda.core.Action;
@@ -149,7 +150,7 @@ public class ParallelCrlogic implements ActionLoop {
// Execute the logic of this path
scrlogic.execute();
return true;
return true;
}});
list.add(f);
@@ -171,8 +172,7 @@ public class ParallelCrlogic implements ActionLoop {
try {
bf.get();
} catch (ExecutionException e) {
// TODO Handle exception the correct way
e.printStackTrace();
logger.log(Level.WARNING, "Something went wrong while waiting for crthreads to finish", e);
}
}