From 50c364a793e8605f0b6f2e48ef5e0e08cfcf817d Mon Sep 17 00:00:00 2001 From: Koji Kawamura Date: Fri, 7 Jul 2017 18:11:41 +0900 Subject: [PATCH] NIFI-4162: PutSQL batch update error message should include the cause Signed-off-by: Pierre Villard This closes #1992. --- .../main/java/org/apache/nifi/processors/standard/PutSQL.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/PutSQL.java b/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/PutSQL.java index cb3b19841a..7e759646f1 100644 --- a/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/PutSQL.java +++ b/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/PutSQL.java @@ -456,8 +456,8 @@ public class PutSQL extends AbstractSessionFactoryProcessor { } } - getLogger().error("Failed to update database due to a failed batch update. There were a total of {} FlowFiles that failed, {} that succeeded, " - + "and {} that were not execute and will be routed to retry; ", new Object[]{failureCount, successCount, retryCount}); + getLogger().error("Failed to update database due to a failed batch update, {}. There were a total of {} FlowFiles that failed, {} that succeeded, " + + "and {} that were not execute and will be routed to retry; ", new Object[]{e, failureCount, successCount, retryCount}, e); return;