From 40c949ca4c540bc5996c3ac41c294a8a01b3c1d4 Mon Sep 17 00:00:00 2001 From: Giuseppe Baittiner Date: Tue, 26 Sep 2023 12:36:09 +0200 Subject: [PATCH] feat: add log for eds strategy --- .../fse2/ms/gtw/rulesmanager/service/impl/ConfigSRV.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/it/finanze/sanita/fse2/ms/gtw/rulesmanager/service/impl/ConfigSRV.java b/src/main/java/it/finanze/sanita/fse2/ms/gtw/rulesmanager/service/impl/ConfigSRV.java index 5261796..7c61204 100644 --- a/src/main/java/it/finanze/sanita/fse2/ms/gtw/rulesmanager/service/impl/ConfigSRV.java +++ b/src/main/java/it/finanze/sanita/fse2/ms/gtw/rulesmanager/service/impl/ConfigSRV.java @@ -4,6 +4,7 @@ import it.finanze.sanita.fse2.ms.gtw.rulesmanager.client.IConfigClient; import it.finanze.sanita.fse2.ms.gtw.rulesmanager.enums.EdsStrategyEnum; import it.finanze.sanita.fse2.ms.gtw.rulesmanager.service.IConfigSRV; +import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.context.event.ApplicationStartedEvent; @@ -14,6 +15,7 @@ import java.util.Date; @Service +@Slf4j public class ConfigSRV implements IConfigSRV { private static final Long DELTA_MS = 300000L; @@ -35,6 +37,7 @@ private void refreshEdsStrategy() { synchronized (this) { edsStrategy = client.getEDSStrategy(); lastUpdate = new Date().getTime(); + log.info("[EDS] Running with strategy: {}", edsStrategy); } }