From 1a571168fec5d4eb72514e09d3c5019e6a584f4d Mon Sep 17 00:00:00 2001 From: george321 Date: Mon, 7 Oct 2024 00:35:06 +0300 Subject: [PATCH] Fix unit tests --- .../gmitaros/vesselmetrics/parser/impl/CsvParserService.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/gmitaros/vesselmetrics/parser/impl/CsvParserService.java b/src/main/java/com/gmitaros/vesselmetrics/parser/impl/CsvParserService.java index 374afe0..a916373 100644 --- a/src/main/java/com/gmitaros/vesselmetrics/parser/impl/CsvParserService.java +++ b/src/main/java/com/gmitaros/vesselmetrics/parser/impl/CsvParserService.java @@ -61,6 +61,7 @@ public class CsvParserService implements DataParser { @PostConstruct public void init() { long vesselData = vesselDataRepository.count(); + log.info("Found {} vessel data in vessel_data db ", vesselData); boolean loadData = vesselData <= 0 || loadCsvIfAlreadyHaveData; if (loadData) { log.info("CsvParserService will load data from {} file", vesselDataPath); @@ -71,6 +72,8 @@ public void init() { log.error("Error initializing data: ", e); throw new RuntimeException("Failed to initialize data", e); } + } else { + log.info("Skipping loading again vessel data from CSV file"); } }