summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gearman/controllerWorker/ControllerWorker/StatusWorker.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/gearman/controllerWorker/ControllerWorker/StatusWorker.java b/gearman/controllerWorker/ControllerWorker/StatusWorker.java
index c49a59a..dee1011 100644
--- a/gearman/controllerWorker/ControllerWorker/StatusWorker.java
+++ b/gearman/controllerWorker/ControllerWorker/StatusWorker.java
@@ -54,7 +54,9 @@ public class StatusWorker extends AbstractGearmanFunction {
for (HashMap<String, String> client : clients) {
String clientID = client.get("id");
String errorText = boot.getError(client);
- clientErrors.put(clientID, errorText);
+ if (!errorText.isEmpty()) {
+ clientErrors.put(clientID, errorText);
+ }
}
content.put("clients errors", clientErrors);
res.put(event, content);
@@ -102,7 +104,9 @@ public class StatusWorker extends AbstractGearmanFunction {
for (HashMap<String, String> client : clients) {
String clientID = client.get("id");
String errorText = shutdown.getError(client);
- clientErrors.put(clientID, errorText);
+ if (!errorText.isEmpty()) {
+ clientErrors.put(clientID, errorText);
+ }
}
content.put("clients errors", clientErrors);
res.put(event, content);