Browse Source

HADOOP-6312. Remove unnecessary debug logging in Configuration constructor. Contributed by Aaron Kimball

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@826141 13f79535-47bb-0310-9956-ffa450edef68
Christopher Douglas 15 years ago
parent
commit
1ecee2e062
2 changed files with 3 additions and 8 deletions
  1. 3 0
      CHANGES.txt
  2. 0 8
      src/java/org/apache/hadoop/conf/Configuration.java

+ 3 - 0
CHANGES.txt

@@ -27,6 +27,9 @@ Trunk (unreleased changes)
     HADOOP-6204. Implementing aspects development and fault injeciton
     HADOOP-6204. Implementing aspects development and fault injeciton
     framework for Hadoop (cos)
     framework for Hadoop (cos)
 
 
+    HADOOP-6312. Remove unnecessary debug logging in Configuration constructor.
+    (Aaron Kimball via cdouglas)
+
   OPTIMIZATIONS
   OPTIMIZATIONS
 
 
   BUG FIXES
   BUG FIXES

+ 0 - 8
src/java/org/apache/hadoop/conf/Configuration.java

@@ -383,9 +383,6 @@ public class Configuration implements Iterable<Map.Entry<String,String>>,
    */
    */
   public Configuration(boolean loadDefaults) {
   public Configuration(boolean loadDefaults) {
     this.loadDefaults = loadDefaults;
     this.loadDefaults = loadDefaults;
-    if (LOG.isDebugEnabled()) {
-      LOG.debug(StringUtils.stringifyException(new IOException("config()")));
-    }
     synchronized(Configuration.class) {
     synchronized(Configuration.class) {
       REGISTRY.put(this, null);
       REGISTRY.put(this, null);
     }
     }
@@ -415,11 +412,6 @@ public class Configuration implements Iterable<Map.Entry<String,String>>,
    */
    */
   @SuppressWarnings("unchecked")
   @SuppressWarnings("unchecked")
   public Configuration(Configuration other) {
   public Configuration(Configuration other) {
-    if (LOG.isDebugEnabled()) {
-      LOG.debug(StringUtils.stringifyException
-                (new IOException("config(config)")));
-    }
-   
    this.resources = (ArrayList)other.resources.clone();
    this.resources = (ArrayList)other.resources.clone();
    synchronized(other) {
    synchronized(other) {
      if (other.properties != null) {
      if (other.properties != null) {