This is an automated email from the ASF dual-hosted git repository. rombert pushed a commit to annotated tag org.apache.sling.hc.webconsole-1.0.4 in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-hc-webconsole.git
commit 1ee3035d10af340c9f62bf8499d6060f686f6962 Author: Bertrand Delacretaz <[email protected]> AuthorDate: Thu Aug 15 14:19:46 2013 +0000 SLING-3020 - Result is now immutable git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/contrib/extensions/healthcheck/webconsole@1514287 13f79535-47bb-0310-9956-ffa450edef68 --- .../sling/hc/webconsole/impl/HealthCheckWebconsolePlugin.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/apache/sling/hc/webconsole/impl/HealthCheckWebconsolePlugin.java b/src/main/java/org/apache/sling/hc/webconsole/impl/HealthCheckWebconsolePlugin.java index 1c9f7b2..3a11943 100644 --- a/src/main/java/org/apache/sling/hc/webconsole/impl/HealthCheckWebconsolePlugin.java +++ b/src/main/java/org/apache/sling/hc/webconsole/impl/HealthCheckWebconsolePlugin.java @@ -37,7 +37,7 @@ import org.apache.sling.api.request.ResponseUtil; import org.apache.sling.hc.api.Constants; import org.apache.sling.hc.api.HealthCheck; import org.apache.sling.hc.api.Result; -import org.apache.sling.hc.api.ResultLogEntry; +import org.apache.sling.hc.api.ResultLog; import org.apache.sling.hc.util.HealthCheckFilter; import org.osgi.framework.BundleContext; import org.osgi.service.component.ComponentContext; @@ -145,13 +145,13 @@ public class HealthCheckWebconsolePlugin extends HttpServlet { c.tr(); c.tdContent(); - for(ResultLogEntry e : result) { - if(!debug && e.getEntryType().equals(ResultLogEntry.LT_DEBUG)) { + for(ResultLog.Entry e : result) { + if(!debug && e.getStatus().equals(Result.Status.DEBUG)) { continue; } final StringBuilder sb = new StringBuilder(); - sb.append("<div class='log").append(e.getEntryType()).append("'>"); - sb.append(e.getEntryType()) + sb.append("<div class='log").append(e.getStatus()).append("'>"); + sb.append(e.getStatus()) .append(" ") .append(ResponseUtil.escapeXml(e.getMessage())) .append("</div>"); -- To stop receiving notification emails like this one, please contact "[email protected]" <[email protected]>.
