diff --git a/src/main/java/trap/report/ReportHelper.java b/src/main/java/trap/report/ReportHelper.java index 7f224e3..465617c 100644 --- a/src/main/java/trap/report/ReportHelper.java +++ b/src/main/java/trap/report/ReportHelper.java @@ -381,8 +381,8 @@ private List getTeamScoresByTotal(Map private void populateTeamIndividualData(Workbook workbook, String sheetName, List teamScoresByTotal) { var sheet = workbook.getSheet(sheetName); var startTime = System.currentTimeMillis(); - var start = System.currentTimeMillis(); - logger.info("Ran query for team scores in {} ms", System.currentTimeMillis() - start); + + logger.info("Ran query for team scores in {} ms", System.currentTimeMillis() - startTime); var rows = sheet.getLastRowNum(); var teamScoresThatCount = calculateTeamScores(teamScoresByTotal); @@ -393,6 +393,7 @@ private void populateTeamIndividualData(Workbook workbook, String sheetName, Lis } sheet.setAutoFilter(CellRangeAddress.valueOf("A1:E1")); + logger.info("Team Individual Scores data populated in {} ms", System.currentTimeMillis() - startTime); }