Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ private static void loadProperties() {
throw new FileNotFoundException("property file '"
+ ParserConsts.PROPS_FILE + "' not found in the classpath");
}
} catch(Exception e){
} catch (Exception e){
LOG.error(e.getMessage());
}

Expand Down Expand Up @@ -124,8 +124,9 @@ private static boolean insertAudits(String dbName, String logs)
preparedStatement.executeBatch();
}
}
if (!auditEntries.isEmpty()) {
preparedStatement.executeBatch(); // insert remaining records
if (auditEntries.size() % batchSize != 0) {
// insert remaining records
preparedStatement.executeBatch();
}
}
return true;
Expand Down