From c0d70530b173beb2d53a4175236520df8e3967c8 Mon Sep 17 00:00:00 2001 From: Suresh Srinivas Date: Tue, 10 May 2011 22:24:23 +0000 Subject: [PATCH] HADOOP-7272. Remove unnecessary security related info logs. Contributed by Suresh Srinivas. git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1101668 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES.txt | 2 ++ src/java/org/apache/hadoop/ipc/Server.java | 10 +++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index 9bb4bb57a8..5bd0c64d88 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -133,6 +133,8 @@ Trunk (unreleased changes) HADOOP-7271. Standardize shell command error messages. (Daryn Sharp via szetszwo) + HADOOP-7272. Remove unnecessary security related info logs. (suresh) + OPTIMIZATIONS BUG FIXES diff --git a/src/java/org/apache/hadoop/ipc/Server.java b/src/java/org/apache/hadoop/ipc/Server.java index 9f2e3e8d0a..4717987d80 100644 --- a/src/java/org/apache/hadoop/ipc/Server.java +++ b/src/java/org/apache/hadoop/ipc/Server.java @@ -1059,12 +1059,16 @@ public Object run() throws SaslException { null); } if (saslServer.isComplete()) { - LOG.info("SASL server context established. Negotiated QoP is " - + saslServer.getNegotiatedProperty(Sasl.QOP)); + if (LOG.isDebugEnabled()) { + LOG.debug("SASL server context established. Negotiated QoP is " + + saslServer.getNegotiatedProperty(Sasl.QOP)); + } String qop = (String) saslServer.getNegotiatedProperty(Sasl.QOP); useWrap = qop != null && !"auth".equalsIgnoreCase(qop); user = getAuthorizedUgi(saslServer.getAuthorizationID()); - LOG.info("SASL server successfully authenticated client: " + user); + if (LOG.isDebugEnabled()) { + LOG.debug("SASL server successfully authenticated client: " + user); + } rpcMetrics.authenticationSuccesses.inc(); AUDITLOG.info(AUTH_SUCCESSFULL_FOR + user); saslContextEstablished = true;