From bd0ec5f420497ee84e95e7823d754a34652c7bf8 Mon Sep 17 00:00:00 2001 From: Jinil Sung Date: Thu, 16 May 2024 16:03:02 -0700 Subject: [PATCH] GRAD2-2724: updated to use slf4j instead of using Logger directly. GRAD2-2724: updated to use slf4j instead of using Logger directly. --- .../gov/educ/api/batchgraduation/reader/BaseReader.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/api/src/main/java/ca/bc/gov/educ/api/batchgraduation/reader/BaseReader.java b/api/src/main/java/ca/bc/gov/educ/api/batchgraduation/reader/BaseReader.java index bf9fb02a..9fa10c26 100644 --- a/api/src/main/java/ca/bc/gov/educ/api/batchgraduation/reader/BaseReader.java +++ b/api/src/main/java/ca/bc/gov/educ/api/batchgraduation/reader/BaseReader.java @@ -3,16 +3,14 @@ import ca.bc.gov.educ.api.batchgraduation.model.AlgorithmSummaryDTO; import ca.bc.gov.educ.api.batchgraduation.model.ResponseObj; import ca.bc.gov.educ.api.batchgraduation.rest.RestUtils; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; +import lombok.extern.slf4j.Slf4j; import org.springframework.batch.core.JobExecution; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; +@Slf4j public abstract class BaseReader { - private static final Logger LOGGER = LoggerFactory.getLogger(BaseReader.class); - @SuppressWarnings("SpringJavaInjectionPointsAutowiringInspection") @Autowired RestUtils restUtils; @@ -36,7 +34,7 @@ protected void aggregate(String summaryContextName) { } protected void fetchAccessToken() { - LOGGER.info("Fetching the access token from KeyCloak API"); + log.info("Fetching the access token from KeyCloak API"); ResponseObj res = restUtils.getTokenResponseObject(); if (res != null) { summaryDTO.setAccessToken(res.getAccess_token());