Add log calls to Engine#shutdown
This commit is contained in:
parent
6481dea957
commit
8c697b8e58
1 changed files with 4 additions and 1 deletions
|
@ -98,7 +98,6 @@ public final class Engine {
|
||||||
logger = new LoggerInstance(new LogIssuer(getClass(), CodePart.ENGINE));
|
logger = new LoggerInstance(new LogIssuer(getClass(), CodePart.ENGINE));
|
||||||
});
|
});
|
||||||
|
|
||||||
// Print finish message
|
|
||||||
logger.info("Initialized sos!engine v%engine_version% in " + initTime + "ms");
|
logger.info("Initialized sos!engine v%engine_version% in " + initTime + "ms");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -175,8 +174,12 @@ public final class Engine {
|
||||||
* @since 1-alpha0
|
* @since 1-alpha0
|
||||||
*/
|
*/
|
||||||
public void shutdown(@Range(from = 0, to = 255) int exitCode) {
|
public void shutdown(@Range(from = 0, to = 255) int exitCode) {
|
||||||
|
logger.info("Shutting engine down");
|
||||||
|
logger.verb("Notifiying classes");
|
||||||
new EngineShutdownEvent().callEvent();
|
new EngineShutdownEvent().callEvent();
|
||||||
|
logger.verb("Notifying subsystems");
|
||||||
new InternalEngineShutdownEvent().callEvent();
|
new InternalEngineShutdownEvent().callEvent();
|
||||||
|
logger.verb("Shutting down");
|
||||||
Runtime.getRuntime().exit(exitCode);
|
Runtime.getRuntime().exit(exitCode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue