Skip to content

Commit

Permalink
GRAD2-2724: updated to use slf4j instead of using Logger directly.
Browse files Browse the repository at this point in the history
GRAD2-2724: updated to use slf4j instead of using Logger directly.
  • Loading branch information
infstar committed May 16, 2024
1 parent 375c47e commit bd0ec5f
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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());
Expand Down

0 comments on commit bd0ec5f

Please sign in to comment.