Skip to content

Commit

Permalink
add logging
Browse files Browse the repository at this point in the history
  • Loading branch information
eckermania committed Oct 22, 2024
1 parent fe25892 commit d112cf5
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@

import ca.bc.gov.educ.eas.api.rest.RestUtils;
import ca.bc.gov.educ.eas.api.struct.v1.StudentMerge;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.UUID;

@Service
@Slf4j
public class StudentMergeService {

private final RestUtils restUtils;
Expand All @@ -19,6 +21,8 @@ public StudentMergeService(RestUtils restUtils){
}

public List<StudentMerge> getMergedStudentsForDateRange(String createDateStart, String createDateEnd){
return restUtils.getMergedStudentsForDateRange(UUID.randomUUID(), createDateStart, createDateEnd);
UUID correlationID = UUID.randomUUID();
log.info("Fetching student merge records for correlation ID: {}", correlationID);
return restUtils.getMergedStudentsForDateRange(correlationID, createDateStart, createDateEnd);
}
}

0 comments on commit d112cf5

Please sign in to comment.