summaryrefslogtreecommitdiffstats
path: root/gearman
diff options
context:
space:
mode:
authorBjörn Geiger2011-08-24 16:23:01 +0200
committerBjörn Geiger2011-08-24 16:23:01 +0200
commit4dbcd94731710caf82f530c219a9b49f40c97c8d (patch)
treeb81877c7b6e53aa36bb266a386e6e59d106948d5 /gearman
parentminor (diff)
downloadpoolctrl-4dbcd94731710caf82f530c219a9b49f40c97c8d.tar.gz
poolctrl-4dbcd94731710caf82f530c219a9b49f40c97c8d.tar.xz
poolctrl-4dbcd94731710caf82f530c219a9b49f40c97c8d.zip
minor
Diffstat (limited to 'gearman')
-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);