From 26e794d29413ca69727d2df8f6893aa12170b0da Mon Sep 17 00:00:00 2001
From: KronosDP <darrel.danadyaksa19@gmail.com>
Date: Fri, 28 Feb 2025 21:54:19 +0700
Subject: [PATCH] [REFACTOR] Update logging and response message format in
 postContent method

---
 .../authentication/service/AuthenticationService.java         | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/safetypin/authentication/service/AuthenticationService.java b/src/main/java/com/safetypin/authentication/service/AuthenticationService.java
index 88df72f..4dd868e 100644
--- a/src/main/java/com/safetypin/authentication/service/AuthenticationService.java
+++ b/src/main/java/com/safetypin/authentication/service/AuthenticationService.java
@@ -143,9 +143,9 @@ 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 by user with email: {}", content, email);
+        logger.info("AuthenticationService.postContent :: Content posted by user with email: {}", email);
         // For demo purposes, we assume the post is successful.
-        return "Content posted successfully";
+        return String.format("Content '%s' posted successfully.", content);
     }
 
     private int calculateAge(LocalDate birthdate) {
-- 
GitLab