Add log calls to Engine#shutdown

This commit is contained in:
JeremyStar™ 2024-06-10 19:26:00 +02:00
parent 6481dea957
commit 8c697b8e58
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D

View file

@ -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);
}