Skip to content

Commit

Permalink
CR: Stop netty leak logger on shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
original-brownbear committed Jul 20, 2018
1 parent 2d372cd commit 43ed1d8
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ public void append(LogEvent event) {

// shutdown hook so that when the test JVM exits, logging is shutdown too
Runtime.getRuntime().addShutdownHook(new Thread(() -> {
leakAppender.stop();
LoggerContext context = (LoggerContext) LogManager.getContext(false);
Configurator.shutdown(context);
}));
Expand Down

0 comments on commit 43ed1d8

Please sign in to comment.