From 46ae4eac7fa6d092e122285cb1a8cd391d8ca9f7 Mon Sep 17 00:00:00 2001 From: Lauro Correia Silveira Date: Sat, 9 Dec 2023 18:13:04 +0100 Subject: [PATCH] Downgrade of Spring boot parent to 3.1.6 - waiting for JSON error fixed --- .../infraestructure/service/UserDetailsServiceImpl.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/alura/aluraflixapi/infraestructure/service/UserDetailsServiceImpl.java b/src/main/java/com/alura/aluraflixapi/infraestructure/service/UserDetailsServiceImpl.java index 09ffa55..6fc96aa 100644 --- a/src/main/java/com/alura/aluraflixapi/infraestructure/service/UserDetailsServiceImpl.java +++ b/src/main/java/com/alura/aluraflixapi/infraestructure/service/UserDetailsServiceImpl.java @@ -15,7 +15,7 @@ @Service public class UserDetailsServiceImpl implements UserDetailsService { - private static final String PREFIX_LOGGIN = "[UserDetailsServiceImpl]"; + private static final String PREFIX_LOGGING = "[UserDetailsServiceImpl]"; private final UserRepository repository; @@ -30,7 +30,9 @@ public UserDetailsServiceImpl(UserRepository repository) { */ @Override public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException { - log.info("{} Retrieving User by username: {}", PREFIX_LOGGIN, username); - return this.repository.findByUsername(username); + log.info("{} Retrieving User by username: {}", PREFIX_LOGGING, username); + final var user = this.repository.findByUsername(username); + log.info("{} Retrieved User: {}", PREFIX_LOGGING, user); + return user; } }