Skip to content

Commit

Permalink
Do not use root logger to further isolate test
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Ross <[email protected]>
  • Loading branch information
andrross committed Jan 12, 2024
1 parent 47a6261 commit 1b47f08
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 1b47f08

Please sign in to comment.