Skip to content

Commit

Permalink
Added logs to know if Datadis consumptions are persisted.
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorKhan committed Jun 16, 2024
1 parent 0359282 commit a818fec
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ public void synchronizeConsumptions() {
List<DatadisConsumption> consumptions = getDatadisConsumptionRepository.getHourlyConsumptionsByMonth(supply, month, year);
if (!consumptions.isEmpty()) {
persistDatadisConsumptionRepository.persistConsumptions(consumptions);
LOGGER.info("Consumptions persisted");
} else {
LOGGER.warn("Consumptions are empty");
}
} catch (DatadisSupplyConfigurationException e) {
LOGGER.error("Unable to retrieve consumptions of supply with ID {} for month {}/{}. Error: {}", supply.getId(),
Expand Down

0 comments on commit a818fec

Please sign in to comment.