未验证 提交 1436063c 编写于 作者: T Tboy 提交者: GitHub

Fix log level error and typos (#7942) (#7943)

上级 9994d6dc
......@@ -26,7 +26,7 @@ public class TypeCheckUtil {
public static <T> T checkType(Object o, Class<T> clazz) {
if (!clazz.isInstance(o)) {
throw new RuntimeException(
String.format("Invalid object type '%s' when exepcting '%s'", o.getClass().getName(), clazz.getName()));
String.format("Invalid object type '%s' when expecting '%s'", o.getClass().getName(), clazz.getName()));
}
return (T) o;
}
......
......@@ -149,7 +149,7 @@ public class DiscoveryServiceServlet extends HttpServlet {
location.append('?').append(request.getQueryString());
}
if (log.isDebugEnabled()) {
log.info("Redirecting to {}", location);
log.debug("Redirecting to {}", location);
}
response.setStatus(HttpServletResponse.SC_TEMPORARY_REDIRECT);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册