NIFI-4162: PutSQL batch update error message should include the cause

Signed-off-by: Pierre Villard <pierre.villard.fr@gmail.com>

This closes #1992.
This commit is contained in:
Koji Kawamura 2017-07-07 18:11:41 +09:00 committed by Pierre Villard
parent 45f82dc855
commit 50c364a793
1 changed files with 2 additions and 2 deletions

View File

@ -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;