Skip to content

Commit

Permalink
Downgrade of Spring boot parent to 3.1.6 - waiting for JSON error fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
LauroSilveira committed Dec 9, 2023
1 parent 3164428 commit 46ae4ea
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;
}
}

0 comments on commit 46ae4ea

Please sign in to comment.