Skip to content

Commit

Permalink
Fix log level error and typos (apache#7942) (apache#7943)
Browse files Browse the repository at this point in the history
  • Loading branch information
Technoboy- authored Sep 2, 2020
1 parent 9994d6d commit 1436063
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ private void redirect(HttpServletRequest request, HttpServletResponse response)
location.append('?').append(request.getQueryString());
}
if (log.isDebugEnabled()) {
log.info("Redirecting to {}", location);
log.debug("Redirecting to {}", location);
}

response.setStatus(HttpServletResponse.SC_TEMPORARY_REDIRECT);
Expand Down

0 comments on commit 1436063

Please sign in to comment.