YARN-2213. Change proxy-user cookie log in AmIpFilter to DEBUG.

Contributed by Varun Saxena
This commit is contained in:
Xuan 2015-03-25 04:49:43 -07:00
parent c770df49b4
commit e556198e71
2 changed files with 7 additions and 2 deletions

View File

@ -837,6 +837,9 @@ Release 2.7.0 - UNRELEASED
YARN-3393. Getting application(s) goes wrong when app finishes before
starting the attempt. (Zhijie Shen via xgong)
YARN-2213. Change proxy-user cookie log in AmIpFilter to DEBUG.
(Varun Saxena via xgong)
Release 2.6.0 - 2014-11-18
INCOMPATIBLE CHANGES

View File

@ -152,8 +152,10 @@ public class AmIpFilter implements Filter {
}
}
if (user == null) {
LOG.warn("Could not find " + WebAppProxyServlet.PROXY_USER_COOKIE_NAME
if (LOG.isDebugEnabled()) {
LOG.debug("Could not find " + WebAppProxyServlet.PROXY_USER_COOKIE_NAME
+ " cookie, so user will not be set");
}
chain.doFilter(req, resp);
} else {
final AmIpPrincipal principal = new AmIpPrincipal(user);