[fix][broker]remove exception log when access status.html
@@ -26,10 +26,12 @@ import javax.ws.rs.Path;
import javax.ws.rs.WebApplicationException;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.Response.Status;
+import lombok.extern.slf4j.Slf4j;
/**
* Web resource used by the VIP service to check to availability of the service instance.
*/
+@Slf4j
@Path("/status.html")
public class VipStatus {
@@ -40,7 +42,6 @@ public class VipStatus {
protected ServletContext servletContext;
@GET
- @Context
public String checkStatus() {
String statusFilePath = (String) servletContext.getAttribute(ATTRIBUTE_STATUS_FILE_PATH);
@SuppressWarnings("unchecked")
@@ -54,6 +55,7 @@ public class VipStatus {
return "OK";
}
}
+ log.warn("Failed to access \"status.html\". The service is not ready");
throw new WebApplicationException(Status.NOT_FOUND);
}
