瀏覽代碼

HADOOP-8002. SecurityUtil acquired token message should be a debug rather than info. (Arpit Gupta via mahadev) - Merging r1236976 from trunk.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.23@1236977 13f79535-47bb-0310-9956-ffa450edef68
Mahadev Konar 13 年之前
父節點
當前提交
e1ff641291

+ 3 - 0
hadoop-common-project/hadoop-common/CHANGES.txt

@@ -84,6 +84,9 @@ Release 0.23.1 - Unreleased
     HADOOP-7988. Upper case in hostname part of the principals doesn't work with
     kerberos. (jitendra)
 
+    HADOOP-8002. SecurityUtil acquired token message should be a debug rather than info.
+    (Arpit Gupta via mahadev)
+
   OPTIMIZATIONS
 
   BUG FIXES

+ 3 - 1
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/SecurityUtil.java

@@ -409,7 +409,9 @@ public class SecurityUtil {
     Text service = buildTokenService(addr);
     if (token != null) {
       token.setService(service);
-      LOG.info("Acquired token "+token);  // Token#toString() prints service
+      if (LOG.isDebugEnabled()) {
+        LOG.debug("Acquired token "+token);  // Token#toString() prints service
+      }
     } else {
       LOG.warn("Failed to get token for service "+service);
     }