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

Contributed by Varun Saxena

(cherry picked from commit e556198e71)
This commit is contained in:
Xuan 2015-03-25 04:49:43 -07:00
parent 2e509908ee
commit 0c4fa872be
2 changed files with 7 additions and 2 deletions

View File

@ -792,6 +792,9 @@ Release 2.7.0 - UNRELEASED
YARN-3393. Getting application(s) goes wrong when app finishes before YARN-3393. Getting application(s) goes wrong when app finishes before
starting the attempt. (Zhijie Shen via xgong) 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 Release 2.6.0 - 2014-11-18
INCOMPATIBLE CHANGES INCOMPATIBLE CHANGES

View File

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