HADOOP-16431. Remove useless log in IOUtils.java and ExceptionDiags.java.

This closes #1091

Signed-off-by: Akira Ajisaka <aajisaka@apache.org>
This commit is contained in:
sunlisheng 2019-07-15 15:21:42 +08:00 committed by Akira Ajisaka
parent ecb9f817ac
commit a1251addff
No known key found for this signature in database
GPG Key ID: C1EDBB9CA400FD50
2 changed files with 0 additions and 4 deletions

View File

@ -508,8 +508,6 @@ public class IOUtils {
Throwable t = ctor.newInstance(msg); Throwable t = ctor.newInstance(msg);
return (T) (t.initCause(exception)); return (T) (t.initCause(exception));
} catch (Throwable e) { } catch (Throwable e) {
LOG.warn("Unable to wrap exception of type " +
clazz + ": it has no (String) constructor", e);
throw exception; throw exception;
} }
} }

View File

@ -91,8 +91,6 @@ public class ExceptionDiags {
Throwable t = ctor.newInstance(msg); Throwable t = ctor.newInstance(msg);
return (T) (t.initCause(exception)); return (T) (t.initCause(exception));
} catch (Throwable e) { } catch (Throwable e) {
LOG.warn("Unable to wrap exception of type " +
clazz + ": it has no (String) constructor", e);
return exception; return exception;
} }
} }