From 1b47f08ad3fd87943745725b0923828d476441a2 Mon Sep 17 00:00:00 2001 From: Andrew Ross Date: Fri, 12 Jan 2024 01:00:53 +0000 Subject: [PATCH] Do not use root logger to further isolate test Signed-off-by: Andrew Ross --- .../org/opensearch/common/settings/InsecureSettingTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/test/java/org/opensearch/common/settings/InsecureSettingTests.java b/server/src/test/java/org/opensearch/common/settings/InsecureSettingTests.java index 2b769800442e2..9358013826a1c 100644 --- a/server/src/test/java/org/opensearch/common/settings/InsecureSettingTests.java +++ b/server/src/test/java/org/opensearch/common/settings/InsecureSettingTests.java @@ -51,12 +51,12 @@ public void append(LogEvent event) { } }; rootAppender.start(); - Loggers.addAppender(LogManager.getRootLogger(), rootAppender); + Loggers.addAppender(LogManager.getLogger(SecureSetting.class), rootAppender); } @After public void removeInsecureSettingsAppender() { - Loggers.removeAppender(LogManager.getRootLogger(), rootAppender); + Loggers.removeAppender(LogManager.getLogger(SecureSetting.class), rootAppender); rootAppender.stop(); }