From 8c697b8e583b32748dbdb423e56eb4ddc47f852d Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Mon, 10 Jun 2024 19:26:00 +0200 Subject: [PATCH] Add log calls to Engine#shutdown --- .../main/java/de/staropensource/sosengine/base/Engine.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/base/src/main/java/de/staropensource/sosengine/base/Engine.java b/base/src/main/java/de/staropensource/sosengine/base/Engine.java index bc90ef6..c4f9582 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/Engine.java +++ b/base/src/main/java/de/staropensource/sosengine/base/Engine.java @@ -98,7 +98,6 @@ public final class Engine { logger = new LoggerInstance(new LogIssuer(getClass(), CodePart.ENGINE)); }); - // Print finish message logger.info("Initialized sos!engine v%engine_version% in " + initTime + "ms"); } @@ -175,8 +174,12 @@ public final class Engine { * @since 1-alpha0 */ public void shutdown(@Range(from = 0, to = 255) int exitCode) { + logger.info("Shutting engine down"); + logger.verb("Notifiying classes"); new EngineShutdownEvent().callEvent(); + logger.verb("Notifying subsystems"); new InternalEngineShutdownEvent().callEvent(); + logger.verb("Shutting down"); Runtime.getRuntime().exit(exitCode); }