File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
examples/spring-boot-demo/implementation/src/main/java/info/jab/ms/controller Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 77import java .util .Map ;
88import java .util .Objects ;
99import java .util .function .Predicate ;
10+ import org .slf4j .Logger ;
11+ import org .slf4j .LoggerFactory ;
1012import org .springframework .http .ResponseEntity ;
1113import org .springframework .web .bind .annotation .RequestMapping ;
1214import org .springframework .web .bind .annotation .RestController ;
3032@ RequestMapping ("/api/v1" )
3133public class FilmController implements FilmControllerApi {
3234
35+ private static final Logger logger = LoggerFactory .getLogger (FilmController .class );
36+
3337 private final FilmService filmService ;
3438
3539 // Predicate to validate that startsWith parameter is exactly one letter
@@ -65,6 +69,7 @@ public ResponseEntity<FilmDTO> getFilms(String startsWith) {
6569 }
6670
6771 // Delegate business logic to service layer
72+ logger .debug ("Fetching films starting with letter: {}" , startsWith );
6873 List <Film > films = filmService .findFilmEntitiesByStartingLetter (startsWith );
6974
7075 // Build filter map for response metadata
You can’t perform that action at this time.
0 commit comments