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
This commit is contained in:
Christopher Douglas 2009-10-17 00:22:39 +00:00
parent c5bce7be47
commit 1ecee2e062
2 changed files with 3 additions and 8 deletions

View File

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

View File

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