diff --git a/src/test/java/telraam/beacon/BeaconTest.java b/src/test/java/telraam/beacon/BeaconTest.java index 94f88e0..de54488 100644 --- a/src/test/java/telraam/beacon/BeaconTest.java +++ b/src/test/java/telraam/beacon/BeaconTest.java @@ -16,6 +16,8 @@ import java.util.concurrent.atomic.AtomicInteger; import org.junit.jupiter.api.BeforeAll; +import java.util.logging.Logger; +import java.util.logging.Level; /** * Beacon integration test. @@ -25,6 +27,7 @@ * @author Arthur Vercruysse */ public class BeaconTest { + private static Logger logger = Logger.getLogger(BeaconTest.class.getName()); private static final Semaphore barrier = new Semaphore(8); @@ -129,7 +132,7 @@ public void testEverythingBeacon() throws Exception { }); ba.onError((e) -> { - System.out.println(e.getLocalizedMessage()); + logger.log(Level.SEVERE, "error", e); errors.incrementAndGet(); return null; });