This is an automated email from the ASF dual-hosted git repository.
aajisaka pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/trunk by this push:
new a1251ad HADOOP-16431. Remove useless log in IOUtils.java and
ExceptionDiags.java.
a1251ad is described below
commit a1251addff8c02b4f08bdeb96d2aaa746c0ff65f
Author: sunlisheng <[email protected]>
AuthorDate: Mon Jul 15 15:21:42 2019 +0800
HADOOP-16431. Remove useless log in IOUtils.java and ExceptionDiags.java.
This closes #1091
Signed-off-by: Akira Ajisaka <[email protected]>
---
.../hadoop-common/src/main/java/org/apache/hadoop/io/IOUtils.java | 2 --
.../src/main/java/org/apache/hadoop/fs/swift/http/ExceptionDiags.java | 2 --
2 files changed, 4 deletions(-)
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 5bbfba3..121af64 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 @@ public class IOUtils {
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 c7e3d25..d159caa 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 @@ public class ExceptionDiags {
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;
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]