Skip to content

Commit

Permalink
Added Hooks.onErrorDropped()
Browse files Browse the repository at this point in the history
  • Loading branch information
artem-v committed Apr 6, 2021
1 parent 1a0fc9f commit 68f209f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions services/src/test/java/io/scalecube/services/BaseTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,17 @@
import org.junit.jupiter.api.TestInfo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import reactor.core.publisher.Hooks;

public abstract class BaseTest {

protected static final Logger LOGGER = LoggerFactory.getLogger(BaseTest.class);

static {
Hooks.onErrorDropped(
throwable -> LOGGER.warn("[onErrorDropped] error: {}", throwable.toString()));
}

@BeforeEach
public final void baseSetUp(TestInfo testInfo) {
LOGGER.info(
Expand Down

0 comments on commit 68f209f

Please sign in to comment.