Skip to content

Commit 68f209f

Browse files
committed
Added Hooks.onErrorDropped()
1 parent 1a0fc9f commit 68f209f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

services/src/test/java/io/scalecube/services/BaseTest.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,17 @@
55
import org.junit.jupiter.api.TestInfo;
66
import org.slf4j.Logger;
77
import org.slf4j.LoggerFactory;
8+
import reactor.core.publisher.Hooks;
89

910
public abstract class BaseTest {
1011

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

14+
static {
15+
Hooks.onErrorDropped(
16+
throwable -> LOGGER.warn("[onErrorDropped] error: {}", throwable.toString()));
17+
}
18+
1319
@BeforeEach
1420
public final void baseSetUp(TestInfo testInfo) {
1521
LOGGER.info(

0 commit comments

Comments
 (0)