From 4dbcd94731710caf82f530c219a9b49f40c97c8d Mon Sep 17 00:00:00 2001 From: Björn Geiger Date: Wed, 24 Aug 2011 16:23:01 +0200 Subject: minor --- gearman/controllerWorker/ControllerWorker/StatusWorker.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'gearman/controllerWorker/ControllerWorker/StatusWorker.java') 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 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 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); -- cgit v1.2.3-55-g7522