Skip to content

Commit

Permalink
test: fixed log format
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Ruaux committed Jun 30, 2022
1 parent 912e3d6 commit 1d1db5b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public QueryRunnable(HikariDataSource ds) {
@Override
public Integer call() throws Exception {
Random random = new Random();
log.info(String.format("Running %s query iterations", iterations));
log.info(String.format("Running %,d query iterations", iterations));
for (int index = 0; index < iterations; index++) {
try (Connection connection = ds.getConnection()) {
PreparedStatement statement = connection.prepareStatement(
Expand Down Expand Up @@ -152,7 +152,7 @@ private void populateDatabase() throws SQLException {
String insertOrderDetailsSQL = "INSERT INTO order_details VALUES (?, ?, ?, ?, 0)";
PreparedStatement insertOrderStatement = connection.prepareStatement(insertOrderSQL);
PreparedStatement insertOrderDetailsStatement = connection.prepareStatement(insertOrderDetailsSQL);
log.info("Populating database with " + rowCount + " rows");
log.info(String.format("Populating database with %,d rows", rowCount));
for (int index = 0; index < rowCount; index++) {
int orderId = 20000 + index;
String customerId = CUSTOMER_IDS.get(random.nextInt(CUSTOMER_IDS.size()));
Expand Down

0 comments on commit 1d1db5b

Please sign in to comment.