SQOOP-875: ClassUtils.instantiate class should not be logging on ERROR level
(Jarcec Cecho via Cheolsoo Park) Project: http://git-wip-us.apache.org/repos/asf/sqoop/repo Commit: http://git-wip-us.apache.org/repos/asf/sqoop/commit/e8ca6f6c Tree: http://git-wip-us.apache.org/repos/asf/sqoop/tree/e8ca6f6c Diff: http://git-wip-us.apache.org/repos/asf/sqoop/diff/e8ca6f6c Branch: refs/heads/sqoop2 Commit: e8ca6f6c93cf193bd6842746e4e9df5d9f85f8d5 Parents: c7365b4 Author: Cheolsoo Park <[email protected]> Authored: Sun Feb 10 13:03:45 2013 -0800 Committer: Cheolsoo Park <[email protected]> Committed: Sun Feb 10 13:03:45 2013 -0800 ---------------------------------------------------------------------- .../java/org/apache/sqoop/utils/ClassUtils.java | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/sqoop/blob/e8ca6f6c/common/src/main/java/org/apache/sqoop/utils/ClassUtils.java ---------------------------------------------------------------------- diff --git a/common/src/main/java/org/apache/sqoop/utils/ClassUtils.java b/common/src/main/java/org/apache/sqoop/utils/ClassUtils.java index 4f89b50..970afe9 100644 --- a/common/src/main/java/org/apache/sqoop/utils/ClassUtils.java +++ b/common/src/main/java/org/apache/sqoop/utils/ClassUtils.java @@ -105,13 +105,13 @@ public final class ClassUtils { Constructor constructor = klass.getConstructor(argumentTypes); return constructor.newInstance(args); } catch (NoSuchMethodException e) { - LOG.error("Can't find such constructor.", e); + LOG.debug("Can't find such constructor.", e); } catch (InvocationTargetException e) { - LOG.error("Can't instantiate object.", e); + LOG.debug("Can't instantiate object.", e); } catch (InstantiationException e) { - LOG.error("Can't instantiate object.", e); + LOG.debug("Can't instantiate object.", e); } catch (IllegalAccessException e) { - LOG.error("Can't instantiate object.", e); + LOG.debug("Can't instantiate object.", e); } return null;
