7
7
import ca .bc .gov .educ .api .studentgraduation .repository .StudentUndoCompletionReasonRepository ;
8
8
import ca .bc .gov .educ .api .studentgraduation .repository .UndoCompletionReasonRepository ;
9
9
import ca .bc .gov .educ .api .studentgraduation .util .GradValidation ;
10
- import lombok .extern .slf4j .Slf4j ;
11
10
import org .apache .commons .lang3 .StringUtils ;
11
+ import org .slf4j .Logger ;
12
+ import org .slf4j .LoggerFactory ;
12
13
import org .springframework .beans .BeanUtils ;
13
14
import org .springframework .beans .factory .annotation .Autowired ;
14
15
import org .springframework .stereotype .Service ;
21
22
import java .util .Optional ;
22
23
23
24
@ Service
24
- @ Slf4j
25
25
public class UndoCompletionReasonService {
26
26
27
27
@ Autowired
@@ -44,6 +44,7 @@ public class UndoCompletionReasonService {
44
44
45
45
private static final String CREATED_BY ="createdBy" ;
46
46
private static final String CREATED_TIMESTAMP ="createdTimestamp" ;
47
+ private static Logger logger = LoggerFactory .getLogger (UndoCompletionReasonService .class );
47
48
48
49
49
50
@ Transactional
@@ -53,14 +54,14 @@ public List<UndoCompletionReason> getAllUndoCompletionReasonCodeList() {
53
54
long end1 = System .nanoTime ();
54
55
long totalTime = (end1 -start1 )/1000000 ;
55
56
if (totalTime > 500 ){
56
- log .debug ("Database: undoCompletionReasonRepository.findAll() took longer than 500ms: " + totalTime );
57
+ logger .debug ("Database: undoCompletionReasonRepository.findAll() took longer than 500ms: " + totalTime );
57
58
}
58
59
long start2 = System .nanoTime ();
59
60
List <UndoCompletionReason > undoCompletionReasons = undoCompletionReasonTransformer .transformToDTO (undoCompletionReasonEntities );
60
61
long end2 = System .nanoTime ();
61
62
long totalTime2 = (end2 -start2 )/1000000 ;
62
63
if (totalTime2 > 500 ){
63
- log .debug ("DTO Transform: undoCompletionReasonTransformer.transformToDTO took longer than 500ms: " + totalTime2 );
64
+ logger .debug ("DTO Transform: undoCompletionReasonTransformer.transformToDTO took longer than 500ms: " + totalTime2 );
64
65
}
65
66
return undoCompletionReasons ;
66
67
}
0 commit comments