From 104add70351066f72939261e69ac83a5ffc665f0 Mon Sep 17 00:00:00 2001 From: Robert von Burg Date: Wed, 13 Mar 2019 15:26:56 +0100 Subject: [PATCH] [Minor] Fixed logger in SetActionTo* commands --- .../li/strolch/execution/command/SetActionToClosedCommand.java | 2 +- .../li/strolch/execution/command/SetActionToCreatedCommand.java | 2 +- .../li/strolch/execution/command/SetActionToErrorCommand.java | 2 +- .../strolch/execution/command/SetActionToExecutedCommand.java | 2 +- .../li/strolch/execution/command/SetActionToPlannedCommand.java | 2 +- .../strolch/execution/command/SetActionToPlanningCommand.java | 2 +- .../li/strolch/execution/command/SetActionToStoppedCommand.java | 2 +- .../li/strolch/execution/command/SetActionToWarningCommand.java | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/li.strolch.service/src/main/java/li/strolch/execution/command/SetActionToClosedCommand.java b/li.strolch.service/src/main/java/li/strolch/execution/command/SetActionToClosedCommand.java index 76d0a82d1..7dede423d 100644 --- a/li.strolch.service/src/main/java/li/strolch/execution/command/SetActionToClosedCommand.java +++ b/li.strolch.service/src/main/java/li/strolch/execution/command/SetActionToClosedCommand.java @@ -43,7 +43,7 @@ public class SetActionToClosedCommand extends ExecutionCommand { tx().lock(getResourceLocator(this.action)); if (this.action.getState() == State.CLOSED) { - logger.warn("Action " + this.action.getLocator() + " is already in CLOSED! Not changing."); + logger.warn("Action " + this.action.getLocator() + " is already in state CLOSED! Not changing."); return; } diff --git a/li.strolch.service/src/main/java/li/strolch/execution/command/SetActionToCreatedCommand.java b/li.strolch.service/src/main/java/li/strolch/execution/command/SetActionToCreatedCommand.java index 7ddb90df4..ff619f847 100644 --- a/li.strolch.service/src/main/java/li/strolch/execution/command/SetActionToCreatedCommand.java +++ b/li.strolch.service/src/main/java/li/strolch/execution/command/SetActionToCreatedCommand.java @@ -43,7 +43,7 @@ public class SetActionToCreatedCommand extends ExecutionCommand { tx().lock(getResourceLocator(this.action)); if (this.action.getState() == State.CREATED) { - logger.warn("Action " + this.action.getLocator() + " is already in CREATED! Not changing."); + logger.warn("Action " + this.action.getLocator() + " is already in state CREATED! Not changing."); return; } diff --git a/li.strolch.service/src/main/java/li/strolch/execution/command/SetActionToErrorCommand.java b/li.strolch.service/src/main/java/li/strolch/execution/command/SetActionToErrorCommand.java index ac51c730c..f04a77148 100644 --- a/li.strolch.service/src/main/java/li/strolch/execution/command/SetActionToErrorCommand.java +++ b/li.strolch.service/src/main/java/li/strolch/execution/command/SetActionToErrorCommand.java @@ -43,7 +43,7 @@ public class SetActionToErrorCommand extends ExecutionCommand { tx().lock(getResourceLocator(this.action)); if (this.action.getState() == State.ERROR) { - logger.warn("Action " + this.action.getLocator() + " is already in ERROR! Not changing."); + logger.warn("Action " + this.action.getLocator() + " is already in state ERROR! Not changing."); return; } diff --git a/li.strolch.service/src/main/java/li/strolch/execution/command/SetActionToExecutedCommand.java b/li.strolch.service/src/main/java/li/strolch/execution/command/SetActionToExecutedCommand.java index fdb3f0330..9cae0dbc6 100644 --- a/li.strolch.service/src/main/java/li/strolch/execution/command/SetActionToExecutedCommand.java +++ b/li.strolch.service/src/main/java/li/strolch/execution/command/SetActionToExecutedCommand.java @@ -43,7 +43,7 @@ public class SetActionToExecutedCommand extends ExecutionCommand { tx().lock(getResourceLocator(this.action)); if (this.action.getState() == State.EXECUTED) { - logger.warn("Action " + this.action.getLocator() + " is already in EXECUTED! Not changing."); + logger.warn("Action " + this.action.getLocator() + " is already in state EXECUTED! Not changing."); return; } diff --git a/li.strolch.service/src/main/java/li/strolch/execution/command/SetActionToPlannedCommand.java b/li.strolch.service/src/main/java/li/strolch/execution/command/SetActionToPlannedCommand.java index 846f0095d..028bd8adf 100644 --- a/li.strolch.service/src/main/java/li/strolch/execution/command/SetActionToPlannedCommand.java +++ b/li.strolch.service/src/main/java/li/strolch/execution/command/SetActionToPlannedCommand.java @@ -43,7 +43,7 @@ public class SetActionToPlannedCommand extends ExecutionCommand { tx().lock(getResourceLocator(this.action)); if (this.action.getState() == State.PLANNED) { - logger.warn("Action " + this.action.getLocator() + " is already in PLANNED! Not changing."); + logger.warn("Action " + this.action.getLocator() + " is already in state PLANNED! Not changing."); return; } diff --git a/li.strolch.service/src/main/java/li/strolch/execution/command/SetActionToPlanningCommand.java b/li.strolch.service/src/main/java/li/strolch/execution/command/SetActionToPlanningCommand.java index 32cbfb88e..beff9b1af 100644 --- a/li.strolch.service/src/main/java/li/strolch/execution/command/SetActionToPlanningCommand.java +++ b/li.strolch.service/src/main/java/li/strolch/execution/command/SetActionToPlanningCommand.java @@ -43,7 +43,7 @@ public class SetActionToPlanningCommand extends ExecutionCommand { tx().lock(getResourceLocator(this.action)); if (this.action.getState() == State.PLANNING) { - logger.warn("Action " + this.action.getLocator() + " is already in PLANNING! Not changing."); + logger.warn("Action " + this.action.getLocator() + " is already in state PLANNING! Not changing."); return; } diff --git a/li.strolch.service/src/main/java/li/strolch/execution/command/SetActionToStoppedCommand.java b/li.strolch.service/src/main/java/li/strolch/execution/command/SetActionToStoppedCommand.java index f45b26780..277804f8b 100644 --- a/li.strolch.service/src/main/java/li/strolch/execution/command/SetActionToStoppedCommand.java +++ b/li.strolch.service/src/main/java/li/strolch/execution/command/SetActionToStoppedCommand.java @@ -43,7 +43,7 @@ public class SetActionToStoppedCommand extends ExecutionCommand { tx().lock(getResourceLocator(this.action)); if (this.action.getState() == State.STOPPED) { - logger.warn("Action " + this.action.getLocator() + " is already in STOPPED! Not changing."); + logger.warn("Action " + this.action.getLocator() + " is already in state STOPPED! Not changing."); return; } diff --git a/li.strolch.service/src/main/java/li/strolch/execution/command/SetActionToWarningCommand.java b/li.strolch.service/src/main/java/li/strolch/execution/command/SetActionToWarningCommand.java index 4cf980f82..3e1217560 100644 --- a/li.strolch.service/src/main/java/li/strolch/execution/command/SetActionToWarningCommand.java +++ b/li.strolch.service/src/main/java/li/strolch/execution/command/SetActionToWarningCommand.java @@ -43,7 +43,7 @@ public class SetActionToWarningCommand extends ExecutionCommand { tx().lock(getResourceLocator(this.action)); if (this.action.getState() == State.WARNING) { - logger.warn("Action " + this.action.getLocator() + " is already in WARNING! Not changing."); + logger.warn("Action " + this.action.getLocator() + " is already in state WARNING! Not changing."); return; }