[Minor] Using action as locator in AbstractTransaction for operations log

This commit is contained in:
Robert von Burg 2018-08-03 22:14:34 +02:00
parent f6349dde10
commit fb795be104
1 changed files with 3 additions and 4 deletions

View File

@ -1319,10 +1319,9 @@ public abstract class AbstractTransaction implements StrolchTransaction {
}
if (this.operationsLog != null) {
this.operationsLog.addMessage(
new LogMessage(this.realm.getRealm(), Locator.valueOf(AGENT, "tx", StrolchAgent.getUniqueId()),
LogSeverity.Exception, ResourceBundle.getBundle("strolch-agent"), "agent.tx.failed")
.value("reason", e));
this.operationsLog.addMessage(new LogMessage(this.realm.getRealm(),
Locator.valueOf(AGENT, "tx", this.action, StrolchAgent.getUniqueId()), LogSeverity.Exception,
ResourceBundle.getBundle("strolch-agent"), "agent.tx.failed").value("reason", e));
}
String msg = "Strolch Transaction for realm {0} failed due to {1}\n{2}"; //$NON-NLS-1$