adamsaghy commented on code in PR #4791:
URL: https://github.com/apache/fineract/pull/4791#discussion_r2174740025
##########
fineract-core/src/main/java/org/apache/fineract/batch/service/BatchApiServiceImpl.java:
##########
@@ -395,4 +401,17 @@ private BatchResponse buildErrorResponse(Long requestId,
Integer statusCode, Str
public void setEntityManager(EntityManager entityManager) {
this.entityManager = entityManager;
}
+
+ private void saveFailedCommandSourceEntries(final Throwable ex) {
+ try {
+ final List<CommandSource> commandSources =
BatchRequestContextHolder.getCommandSources();
+ if (!commandSources.isEmpty()) {
+ final String errorMessage = ex != null ? ex.getMessage() :
"Batch processing failed";
+ log.info("Saving {} failed entries for batch audit with error:
{}", commandSources.size(), errorMessage);
Review Comment:
Please change the log level to debug
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]