Skip to content

Commit

Permalink
updating ShutdownManager calls after bootique/bootique#346
Browse files Browse the repository at this point in the history
  • Loading branch information
andrus committed Dec 6, 2023
1 parent 2883618 commit 5c56876
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ public LogbackContextFactory() {

public Logger createRootLogger(ShutdownManager shutdownManager, Map<String, java.util.logging.Level> defaultLevels) {

LoggerContext context = createLogbackContext();
shutdownManager.addShutdownHook(context::stop);
LoggerContext context = shutdownManager.onShutdown(createLogbackContext(), LoggerContext::stop);

rerouteJUL();

Expand Down

0 comments on commit 5c56876

Please sign in to comment.