diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/IOUtils.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/IOUtils.java index 5bbfba39b7..121af64b01 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/IOUtils.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/IOUtils.java @@ -508,8 +508,6 @@ private static T wrapWithMessage( Throwable t = ctor.newInstance(msg); return (T) (t.initCause(exception)); } catch (Throwable e) { - LOG.warn("Unable to wrap exception of type " + - clazz + ": it has no (String) constructor", e); throw exception; } } diff --git a/hadoop-tools/hadoop-openstack/src/main/java/org/apache/hadoop/fs/swift/http/ExceptionDiags.java b/hadoop-tools/hadoop-openstack/src/main/java/org/apache/hadoop/fs/swift/http/ExceptionDiags.java index c7e3d2573f..d159caa669 100644 --- a/hadoop-tools/hadoop-openstack/src/main/java/org/apache/hadoop/fs/swift/http/ExceptionDiags.java +++ b/hadoop-tools/hadoop-openstack/src/main/java/org/apache/hadoop/fs/swift/http/ExceptionDiags.java @@ -91,8 +91,6 @@ private static T wrapWithMessage( Throwable t = ctor.newInstance(msg); return (T) (t.initCause(exception)); } catch (Throwable e) { - LOG.warn("Unable to wrap exception of type " + - clazz + ": it has no (String) constructor", e); return exception; } }