From 934047630a8c0dc227dc393797a460933d212a17 Mon Sep 17 00:00:00 2001 From: Mahadev Konar Date: Sat, 28 Jan 2012 04:05:19 +0000 Subject: [PATCH] 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 --- hadoop-common-project/hadoop-common/CHANGES.txt | 3 +++ .../main/java/org/apache/hadoop/security/SecurityUtil.java | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt index 4a420692a7..51f582745e 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/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-8002. SecurityUtil acquired token message should be a debug rather than info. + (Arpit Gupta via mahadev) + OPTIMIZATIONS BUG FIXES diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/SecurityUtil.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/SecurityUtil.java index abf9f3aa80..2685887464 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/SecurityUtil.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/SecurityUtil.java @@ -409,7 +409,9 @@ public static void setTokenService(Token token, InetSocketAddress addr) { 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); }