Author: suresh
Date: Thu May 19 21:59:23 2011
New Revision: 1125139

URL: http://svn.apache.org/viewvc?rev=1125139&view=rev
Log:
HADOOP-7272. Remove unnecessary security related info logs (porting from trunk)

Modified:
    hadoop/common/branches/branch-0.20-security/CHANGES.txt
    
hadoop/common/branches/branch-0.20-security/src/core/org/apache/hadoop/ipc/Server.java

Modified: hadoop/common/branches/branch-0.20-security/CHANGES.txt
URL: 
http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.20-security/CHANGES.txt?rev=1125139&r1=1125138&r2=1125139&view=diff
==============================================================================
--- hadoop/common/branches/branch-0.20-security/CHANGES.txt (original)
+++ hadoop/common/branches/branch-0.20-security/CHANGES.txt Thu May 19 21:59:23 
2011
@@ -24,6 +24,8 @@ Release 0.20.205.0 - unreleased
     MAPREDUCE-2479. Move distributed cache cleanup to a background task,
     backporting MAPREDUCE-1568. (Robert Joseph Evans via cdouglas)
 
+    HADOOP-7272. Remove unnecessary security related info logs. (suresh)
+
 Release 0.20.204.0 - unreleased
 
   BUG FIXES

Modified: 
hadoop/common/branches/branch-0.20-security/src/core/org/apache/hadoop/ipc/Server.java
URL: 
http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.20-security/src/core/org/apache/hadoop/ipc/Server.java?rev=1125139&r1=1125138&r2=1125139&view=diff
==============================================================================
--- 
hadoop/common/branches/branch-0.20-security/src/core/org/apache/hadoop/ipc/Server.java
 (original)
+++ 
hadoop/common/branches/branch-0.20-security/src/core/org/apache/hadoop/ipc/Server.java
 Thu May 19 21:59:23 2011
@@ -1037,12 +1037,16 @@ public abstract class Server {
               null);
         }
         if (saslServer.isComplete()) {
-          LOG.info("SASL server context established. Negotiated QoP is "
-              + saslServer.getNegotiatedProperty(Sasl.QOP));
+          if (LOG.isDebugEnabled()) {
+            LOG.info("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.info("SASL server successfully authenticated client: " + user);
+          }
           rpcMetrics.incrAuthenticationSuccesses();
           AUDITLOG.info(AUTH_SUCCESSFULL_FOR + user);
           saslContextEstablished = true;


Reply via email to