瀏覽代碼

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

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1236976 13f79535-47bb-0310-9956-ffa450edef68
Mahadev Konar 13 年之前
父節點
當前提交
934047630a

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

@@ -218,6 +218,9 @@ Release 0.23.1 - Unreleased
 
 
     HADOOP-7939. Improve Hadoop subcomponent integration in Hadoop 0.23. (rvs via tucu)
     HADOOP-7939. Improve Hadoop subcomponent integration in Hadoop 0.23. (rvs via tucu)
 
 
+    HADOOP-8002. SecurityUtil acquired token message should be a debug rather than info.
+    (Arpit Gupta via mahadev)
+
   OPTIMIZATIONS
   OPTIMIZATIONS
 
 
   BUG FIXES
   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);
     Text service = buildTokenService(addr);
     if (token != null) {
     if (token != null) {
       token.setService(service);
       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 {
     } else {
       LOG.warn("Failed to get token for service "+service);
       LOG.warn("Failed to get token for service "+service);
     }
     }