diff --git a/src/main/java/com/safetypin/authentication/service/AuthenticationService.java b/src/main/java/com/safetypin/authentication/service/AuthenticationService.java index 97c7e5d7455f76fd99cb11490d4760266b9c6e91..ebeb3932ddc2162aaf0ccfc32367af6189fe9a0b 100644 --- a/src/main/java/com/safetypin/authentication/service/AuthenticationService.java +++ b/src/main/java/com/safetypin/authentication/service/AuthenticationService.java @@ -94,7 +94,7 @@ public class AuthenticationService { logger.warn("Login failed: Incorrect password attempt"); throw new InvalidCredentialsException("Invalid password"); } - logger.info("User logged in: {} at {}", email, java.time.LocalDateTime.now()); + logger.info("User logged in at {}", java.time.LocalDateTime.now()); return user; } @@ -143,7 +143,7 @@ public class AuthenticationService { if (!user.isVerified()) { return "Your account is not verified. Please complete OTP verification. You may request a new OTP after 2 minutes."; } - logger.info("AuthenticationService.postContent :: Content posted: {}", content); + logger.info("AuthenticationService.postContent :: Content posted by user with email: {}", email); // For demo purposes, we assume the post is successful. return "Content posted successfully"; }