diff --git a/agent-module/profiler/src/test/java/com/navercorp/pinpoint/profiler/metadata/DefaultExceptionRecorderTest.java b/agent-module/profiler/src/test/java/com/navercorp/pinpoint/profiler/metadata/DefaultExceptionRecorderTest.java index 75663dd9d957..f9220b2d0d0c 100644 --- a/agent-module/profiler/src/test/java/com/navercorp/pinpoint/profiler/metadata/DefaultExceptionRecorderTest.java +++ b/agent-module/profiler/src/test/java/com/navercorp/pinpoint/profiler/metadata/DefaultExceptionRecorderTest.java @@ -59,8 +59,9 @@ public TestExceptionStorage() { @Override public void store(List wrappers) { - logger.error(wrappers); + logger.info(wrappers); this.wrappers.addAll(wrappers); + logger.info(String.format("current wrappers: ", this.wrappers)); } @Override @@ -176,7 +177,6 @@ public void testRecordNotChainedException() { notChainedException(throwableFunction); } catch (Throwable e) { expected1 = newExceptionWrappers(exceptions.get(exceptions.size() - 2), START_TIME, 1); - exceptionRecorder.recordException(e, START_TIME); logger.warn(exceptionStorage.getWrappers()); actual1 = new ArrayList<>(exceptionStorage.getWrappers()); throwable = e; @@ -215,7 +215,6 @@ public void testRecordRethrowGivenException() { rethrowGivenException(throwableFunction); } catch (Throwable e) { expected = newExceptionWrappers(e, START_TIME, 1); - exceptionRecorder.recordException(e, START_TIME); actual = exceptionStorage.getWrappers(); Assertions.assertTrue(actual.isEmpty()); }