Skip to content

Commit

Permalink
actually log the error
Browse files Browse the repository at this point in the history
  • Loading branch information
ajuvercr committed Nov 6, 2019
1 parent 373ae33 commit e4e2b59
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/test/java/telraam/beacon/BeaconTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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);

Expand Down Expand Up @@ -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;
});
Expand Down

0 comments on commit e4e2b59

Please sign in to comment.