Change app name in logs.

This commit is contained in:
Anatoly Sablin
2019-07-21 17:48:52 +03:00
parent 608938c084
commit 7ee3e19de4

View File

@@ -73,20 +73,20 @@ public class MxisdStandaloneExec {
} }
if (Objects.isNull(cfg)) { if (Objects.isNull(cfg)) {
cfg = YamlConfigLoader.tryLoadFromFile("mxisd.yaml").orElseGet(MxisdConfig::new); cfg = YamlConfigLoader.tryLoadFromFile("ma1sd.yaml").orElseGet(MxisdConfig::new);
} }
log.info("mxisd starting"); log.info("ma1sd starting");
log.info("Version: {}", Mxisd.Version); log.info("Version: {}", Mxisd.Version);
HttpMxisd mxisd = new HttpMxisd(cfg); HttpMxisd mxisd = new HttpMxisd(cfg);
Runtime.getRuntime().addShutdownHook(new Thread(() -> { Runtime.getRuntime().addShutdownHook(new Thread(() -> {
mxisd.stop(); mxisd.stop();
log.info("mxisd stopped"); log.info("ma1sd stopped");
})); }));
mxisd.start(); mxisd.start();
log.info("mxisd started"); log.info("ma1sd started");
} catch (ConfigurationException e) { } catch (ConfigurationException e) {
log.error(e.getDetailedMessage()); log.error(e.getDetailedMessage());
log.error(e.getMessage()); log.error(e.getMessage());