[Minor] added LogMessage for agent start and stop

This commit is contained in:
Robert von Burg 2018-10-15 14:56:55 +02:00
parent 2286752c57
commit 91dee21300
1 changed files with 2 additions and 2 deletions

View File

@ -269,7 +269,7 @@ public class ComponentContainerImpl implements ComponentContainer {
if (hasComponent(OperationsLog.class)) {
for (String realmName : getRealmNames()) {
getComponent(OperationsLog.class).addMessage(new LogMessage(realmName, SYSTEM_USER_AGENT,
Locator.valueOf(AGENT, "strolch-agent", StrolchAgent.getUniqueId()), LogSeverity.Exception,
Locator.valueOf(AGENT, "strolch-agent", StrolchAgent.getUniqueId()), LogSeverity.Info,
ResourceBundle.getBundle("strolch-agent"), "agent.started") //
.value("applicationName", applicationName) //
.value("environment", environment) //
@ -290,7 +290,7 @@ public class ComponentContainerImpl implements ComponentContainer {
if (hasComponent(OperationsLog.class)) {
for (String realmName : getRealmNames()) {
getComponent(OperationsLog.class).addMessage(new LogMessage(realmName, SYSTEM_USER_AGENT,
Locator.valueOf(AGENT, "strolch-agent", StrolchAgent.getUniqueId()), LogSeverity.Exception,
Locator.valueOf(AGENT, "strolch-agent", StrolchAgent.getUniqueId()), LogSeverity.Info,
ResourceBundle.getBundle("strolch-agent"), "agent.stopping") //
.value("applicationName", applicationName) //
.value("environment", environment) //