Repository: sqoop Updated Branches: refs/heads/trunk 7d6667ddb -> c08c194eb
SQOOP-3028: Include stack trace in the logging of exceptions in ExportTool (Boglarka Egyed via Attila Szabo) Project: http://git-wip-us.apache.org/repos/asf/sqoop/repo Commit: http://git-wip-us.apache.org/repos/asf/sqoop/commit/c08c194e Tree: http://git-wip-us.apache.org/repos/asf/sqoop/tree/c08c194e Diff: http://git-wip-us.apache.org/repos/asf/sqoop/diff/c08c194e Branch: refs/heads/trunk Commit: c08c194eb9a34733305535a9512f3b642ef33f95 Parents: 7d6667d Author: Attila Szabo <[email protected]> Authored: Tue Nov 22 11:59:16 2016 +0100 Committer: Attila Szabo <[email protected]> Committed: Tue Nov 22 11:59:16 2016 +0100 ---------------------------------------------------------------------- src/java/org/apache/sqoop/tool/ExportTool.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/sqoop/blob/c08c194e/src/java/org/apache/sqoop/tool/ExportTool.java ---------------------------------------------------------------------- diff --git a/src/java/org/apache/sqoop/tool/ExportTool.java b/src/java/org/apache/sqoop/tool/ExportTool.java index bd51c30..89f8590 100644 --- a/src/java/org/apache/sqoop/tool/ExportTool.java +++ b/src/java/org/apache/sqoop/tool/ExportTool.java @@ -99,15 +99,14 @@ public class ExportTool extends com.cloudera.sqoop.tool.BaseSqoopTool { try { exportTable(options, options.getTableName()); } catch (IOException ioe) { - LOG.error("Encountered IOException running export job: " - + ioe.toString()); + LOG.error("Encountered IOException running export job: ", ioe); if (System.getProperty(Sqoop.SQOOP_RETHROW_PROPERTY) != null) { throw new RuntimeException(ioe); } else { return 1; } } catch (ExportException ee) { - LOG.error("Error during export: " + ee.toString()); + LOG.error("Error during export: ", ee); if (System.getProperty(Sqoop.SQOOP_RETHROW_PROPERTY) != null) { throw new RuntimeException(ee); } else {
