diff --git a/services/users/src/main/java/com/workup/users/commands/AddFreelancerAchievementCommand.java b/services/users/src/main/java/com/workup/users/commands/AddFreelancerAchievementCommand.java index 530d81d9..3bdbcf0a 100644 --- a/services/users/src/main/java/com/workup/users/commands/AddFreelancerAchievementCommand.java +++ b/services/users/src/main/java/com/workup/users/commands/AddFreelancerAchievementCommand.java @@ -18,7 +18,7 @@ public AddFreelancerAchievementResponse Run(AddFreelancerAchievementRequest requ logger.info("Add Freelancer Achievement"); Optional freelancerOptional = freelancerRepository.findById(request.getUserId()); if (freelancerOptional.isEmpty()) { - logger.info("Freelancer Not Found"); + logger.error("Freelancer Not Found"); return AddFreelancerAchievementResponse.builder() .withStatusCode(HttpStatusCode.NOT_FOUND) .withErrorMessage("Freelancer Doesn't Exist") diff --git a/services/users/src/main/java/com/workup/users/commands/AddFreelancerEducationCommand.java b/services/users/src/main/java/com/workup/users/commands/AddFreelancerEducationCommand.java index abb62411..5a875747 100644 --- a/services/users/src/main/java/com/workup/users/commands/AddFreelancerEducationCommand.java +++ b/services/users/src/main/java/com/workup/users/commands/AddFreelancerEducationCommand.java @@ -18,7 +18,7 @@ public AddFreelancerEducationResponse Run(AddFreelancerEducationRequest request) logger.info("Add Freelancer Education"); Optional freelancerOptional = freelancerRepository.findById(request.getUserId()); if (freelancerOptional.isEmpty()) { - logger.info("Freelancer Not Found"); + logger.error("Freelancer Not Found"); return AddFreelancerEducationResponse.builder() .withStatusCode(HttpStatusCode.NOT_FOUND) .withErrorMessage("Freelancer Doesn't Exist") diff --git a/services/users/src/main/java/com/workup/users/commands/AddFreelancerExperienceCommand.java b/services/users/src/main/java/com/workup/users/commands/AddFreelancerExperienceCommand.java index e6b2e53e..70304590 100644 --- a/services/users/src/main/java/com/workup/users/commands/AddFreelancerExperienceCommand.java +++ b/services/users/src/main/java/com/workup/users/commands/AddFreelancerExperienceCommand.java @@ -18,7 +18,7 @@ public AddFreelancerExperienceResponse Run(AddFreelancerExperienceRequest reques logger.info("Add Freelancer Experience"); Optional freelancerOptional = freelancerRepository.findById(request.getUserId()); if (freelancerOptional.isEmpty()) { - logger.info("Freelancer Not Found"); + logger.error("Freelancer Not Found"); return AddFreelancerExperienceResponse.builder() .withStatusCode(HttpStatusCode.NOT_FOUND) .withErrorMessage("Freelancer Doesn't Exist") diff --git a/services/users/src/main/java/com/workup/users/commands/AddFreelancerLanguageCommand.java b/services/users/src/main/java/com/workup/users/commands/AddFreelancerLanguageCommand.java index 1c8a65c0..cc3aeabd 100644 --- a/services/users/src/main/java/com/workup/users/commands/AddFreelancerLanguageCommand.java +++ b/services/users/src/main/java/com/workup/users/commands/AddFreelancerLanguageCommand.java @@ -18,7 +18,7 @@ public AddFreelancerLanguageResponse Run(AddFreelancerLanguageRequest request) { logger.info("Add Freelancer Language"); Optional freelancerOptional = freelancerRepository.findById(request.getUserId()); if (freelancerOptional.isEmpty()) { - logger.info("Freelancer Not Found"); + logger.error("Freelancer Not Found"); return AddFreelancerLanguageResponse.builder() .withStatusCode(HttpStatusCode.NOT_FOUND) .withErrorMessage("Freelancer Doesn't Exist") diff --git a/services/users/src/main/java/com/workup/users/commands/AddFreelancerSkillCommand.java b/services/users/src/main/java/com/workup/users/commands/AddFreelancerSkillCommand.java index 72d10b02..91c32a1e 100644 --- a/services/users/src/main/java/com/workup/users/commands/AddFreelancerSkillCommand.java +++ b/services/users/src/main/java/com/workup/users/commands/AddFreelancerSkillCommand.java @@ -19,7 +19,7 @@ public AddFreelancerSkillResponse Run(AddFreelancerSkillRequest request) { logger.info("Add Freelancer Skill"); Optional freelancerOptional = freelancerRepository.findById(request.getUserId()); if (freelancerOptional.isEmpty()) { - logger.info("Freelancer Not Found"); + logger.error("Freelancer Not Found"); return AddFreelancerSkillResponse.builder() .withStatusCode(HttpStatusCode.NOT_FOUND) .withErrorMessage("Freelancer Doesn't Exist") diff --git a/services/users/src/main/java/com/workup/users/commands/GetFreelancerAchievementsCommand.java b/services/users/src/main/java/com/workup/users/commands/GetFreelancerAchievementsCommand.java index cae8e14b..e35833ed 100644 --- a/services/users/src/main/java/com/workup/users/commands/GetFreelancerAchievementsCommand.java +++ b/services/users/src/main/java/com/workup/users/commands/GetFreelancerAchievementsCommand.java @@ -21,7 +21,7 @@ public GetFreelancerAchievementsResponse Run(GetFreelancerAchievementsRequest re logger.info("Get Freelancer Achievements"); Optional freelancerOptional = freelancerRepository.findById(request.getUserId()); if (freelancerOptional.isEmpty()) { - logger.info("Freelancer Not Found"); + logger.error("Freelancer Not Found"); return GetFreelancerAchievementsResponse.builder() .withStatusCode(HttpStatusCode.NOT_FOUND) .withErrorMessage("Freelancer Doesn't Exist") diff --git a/services/users/src/main/java/com/workup/users/commands/GetFreelancerEducationsCommand.java b/services/users/src/main/java/com/workup/users/commands/GetFreelancerEducationsCommand.java index ec18bf32..3b2b1e1b 100644 --- a/services/users/src/main/java/com/workup/users/commands/GetFreelancerEducationsCommand.java +++ b/services/users/src/main/java/com/workup/users/commands/GetFreelancerEducationsCommand.java @@ -21,7 +21,7 @@ public GetFreelancerEducationsResponse Run(GetFreelancerEducationsRequest reques logger.info("Get Freelancer Educations"); Optional freelancerOptional = freelancerRepository.findById(request.getUserId()); if (freelancerOptional.isEmpty()) { - logger.info("Freelancer Not Found"); + logger.error("Freelancer Not Found"); return GetFreelancerEducationsResponse.builder() .withStatusCode(HttpStatusCode.NOT_FOUND) .withErrorMessage("Freelancer Doesn't Exist") diff --git a/services/users/src/main/java/com/workup/users/commands/GetFreelancerExperiencesCommand.java b/services/users/src/main/java/com/workup/users/commands/GetFreelancerExperiencesCommand.java index 52b7525c..eb56f1d6 100644 --- a/services/users/src/main/java/com/workup/users/commands/GetFreelancerExperiencesCommand.java +++ b/services/users/src/main/java/com/workup/users/commands/GetFreelancerExperiencesCommand.java @@ -21,7 +21,7 @@ public GetFreelancerExperiencesResponse Run(GetFreelancerExperiencesRequest requ logger.info("Get Freelancer Experiences"); Optional freelancerOptional = freelancerRepository.findById(request.getUserId()); if (freelancerOptional.isEmpty()) { - logger.info("Freelancer Not Found"); + logger.error("Freelancer Not Found"); return GetFreelancerExperiencesResponse.builder() .withStatusCode(HttpStatusCode.NOT_FOUND) .withErrorMessage("Freelancer Doesn't Exist") diff --git a/services/users/src/main/java/com/workup/users/commands/GetFreelancerLanguagesCommand.java b/services/users/src/main/java/com/workup/users/commands/GetFreelancerLanguagesCommand.java index f56c7ff1..3e60d785 100644 --- a/services/users/src/main/java/com/workup/users/commands/GetFreelancerLanguagesCommand.java +++ b/services/users/src/main/java/com/workup/users/commands/GetFreelancerLanguagesCommand.java @@ -18,7 +18,7 @@ public GetFreelancerLanguagesResponse Run(GetFreelancerLanguagesRequest request) logger.info("Get Freelancer Languages"); Optional freelancerOptional = freelancerRepository.findById(request.getUserId()); if (freelancerOptional.isEmpty()) { - logger.info("Freelancer Not Found"); + logger.error("Freelancer Not Found"); return GetFreelancerLanguagesResponse.builder() .withStatusCode(HttpStatusCode.NOT_FOUND) .withErrorMessage("Freelancer Doesn't Exist") diff --git a/services/users/src/main/java/com/workup/users/commands/GetFreelancerSkillsCommand.java b/services/users/src/main/java/com/workup/users/commands/GetFreelancerSkillsCommand.java index 997c5698..20831cfc 100644 --- a/services/users/src/main/java/com/workup/users/commands/GetFreelancerSkillsCommand.java +++ b/services/users/src/main/java/com/workup/users/commands/GetFreelancerSkillsCommand.java @@ -18,7 +18,7 @@ public GetFreelancerSkillsResponse Run(GetFreelancerSkillsRequest request) { logger.info("Get Freelancer Skills"); Optional freelancerOptional = freelancerRepository.findById(request.getUserId()); if (freelancerOptional.isEmpty()) { - logger.info("Freelancer Not Found"); + logger.error("Freelancer Not Found"); return GetFreelancerSkillsResponse.builder() .withStatusCode(HttpStatusCode.NOT_FOUND) .withErrorMessage("Freelancer Doesn't Exist") diff --git a/services/users/src/main/java/com/workup/users/commands/RemoveFreelancerAchievementCommand.java b/services/users/src/main/java/com/workup/users/commands/RemoveFreelancerAchievementCommand.java index 80958d7d..715f111a 100644 --- a/services/users/src/main/java/com/workup/users/commands/RemoveFreelancerAchievementCommand.java +++ b/services/users/src/main/java/com/workup/users/commands/RemoveFreelancerAchievementCommand.java @@ -19,7 +19,7 @@ public RemoveFreelancerAchievementResponse Run(RemoveFreelancerAchievementReques logger.info("Remove Freelancer Achievement"); Optional freelancerOptional = freelancerRepository.findById(request.getUserId()); if (freelancerOptional.isEmpty()) { - logger.info("Freelancer Not Found"); + logger.error("Freelancer Not Found"); return RemoveFreelancerAchievementResponse.builder() .withStatusCode(HttpStatusCode.NOT_FOUND) .withErrorMessage("Freelancer Doesn't Exist") diff --git a/services/users/src/main/java/com/workup/users/commands/RemoveFreelancerEducationCommand.java b/services/users/src/main/java/com/workup/users/commands/RemoveFreelancerEducationCommand.java index f1b65b5f..9aa026f0 100644 --- a/services/users/src/main/java/com/workup/users/commands/RemoveFreelancerEducationCommand.java +++ b/services/users/src/main/java/com/workup/users/commands/RemoveFreelancerEducationCommand.java @@ -18,7 +18,7 @@ public RemoveFreelancerEducationResponse Run(RemoveFreelancerEducationRequest re logger.info("Remove Freelancer Education"); Optional freelancerOptional = freelancerRepository.findById(request.getUserId()); if (freelancerOptional.isEmpty()) { - logger.info("Freelancer Not Found"); + logger.error("Freelancer Not Found"); return RemoveFreelancerEducationResponse.builder() .withStatusCode(HttpStatusCode.NOT_FOUND) .withErrorMessage("Freelancer Doesn't Exist") diff --git a/services/users/src/main/java/com/workup/users/commands/RemoveFreelancerExperienceCommand.java b/services/users/src/main/java/com/workup/users/commands/RemoveFreelancerExperienceCommand.java index b36f2026..8c33b5f1 100644 --- a/services/users/src/main/java/com/workup/users/commands/RemoveFreelancerExperienceCommand.java +++ b/services/users/src/main/java/com/workup/users/commands/RemoveFreelancerExperienceCommand.java @@ -19,7 +19,7 @@ public RemoveFreelancerExperienceResponse Run(RemoveFreelancerExperienceRequest logger.info("Remove Freelancer Experience"); Optional freelancerOptional = freelancerRepository.findById(request.getUserId()); if (freelancerOptional.isEmpty()) { - logger.info("Freelancer Not Found"); + logger.error("Freelancer Not Found"); return RemoveFreelancerExperienceResponse.builder() .withStatusCode(HttpStatusCode.NOT_FOUND) .withErrorMessage("Freelancer Doesn't Exist") diff --git a/services/users/src/main/java/com/workup/users/commands/RemoveFreelancerLanguageCommand.java b/services/users/src/main/java/com/workup/users/commands/RemoveFreelancerLanguageCommand.java index c47a9b9c..df6fabe2 100644 --- a/services/users/src/main/java/com/workup/users/commands/RemoveFreelancerLanguageCommand.java +++ b/services/users/src/main/java/com/workup/users/commands/RemoveFreelancerLanguageCommand.java @@ -17,7 +17,7 @@ public RemoveFreelancerLanguageResponse Run(RemoveFreelancerLanguageRequest requ logger.info("Remove Freelancer Language"); Optional freelancerOptional = freelancerRepository.findById(request.getUserId()); if (freelancerOptional.isEmpty()) { - logger.info("Freelancer Not Found"); + logger.error("Freelancer Not Found"); return RemoveFreelancerLanguageResponse.builder() .withStatusCode(HttpStatusCode.NOT_FOUND) .withErrorMessage("Freelancer Doesn't Exist") diff --git a/services/users/src/main/java/com/workup/users/commands/RemoveFreelancerSkillCommand.java b/services/users/src/main/java/com/workup/users/commands/RemoveFreelancerSkillCommand.java index c641e201..97a0b7d2 100644 --- a/services/users/src/main/java/com/workup/users/commands/RemoveFreelancerSkillCommand.java +++ b/services/users/src/main/java/com/workup/users/commands/RemoveFreelancerSkillCommand.java @@ -17,7 +17,7 @@ public RemoveFreelancerSkillResponse Run(RemoveFreelancerSkillRequest request) { logger.info("Remove Freelancer Skill"); Optional freelancerOptional = freelancerRepository.findById(request.getUserId()); if (freelancerOptional.isEmpty()) { - logger.info("Freelancer Not Found"); + logger.error("Freelancer Not Found"); return RemoveFreelancerSkillResponse.builder() .withStatusCode(HttpStatusCode.NOT_FOUND) .withErrorMessage("Freelancer Doesn't Exist") diff --git a/services/users/src/main/java/com/workup/users/commands/UpdateFreelancerAchievementCommand.java b/services/users/src/main/java/com/workup/users/commands/UpdateFreelancerAchievementCommand.java index c64df9f7..2feed00b 100644 --- a/services/users/src/main/java/com/workup/users/commands/UpdateFreelancerAchievementCommand.java +++ b/services/users/src/main/java/com/workup/users/commands/UpdateFreelancerAchievementCommand.java @@ -19,7 +19,7 @@ public UpdateFreelancerAchievementResponse Run(UpdateFreelancerAchievementReques logger.info("Update Freelancer Achievement"); Optional freelancerOptional = freelancerRepository.findById(request.getUserId()); if (freelancerOptional.isEmpty()) { - logger.info("Freelancer Not Found"); + logger.error("Freelancer Not Found"); return UpdateFreelancerAchievementResponse.builder() .withStatusCode(HttpStatusCode.NOT_FOUND) .withErrorMessage("Freelancer Doesn't Exist") diff --git a/services/users/src/main/java/com/workup/users/commands/UpdateFreelancerEducationCommand.java b/services/users/src/main/java/com/workup/users/commands/UpdateFreelancerEducationCommand.java index 7811657d..57fa42b8 100644 --- a/services/users/src/main/java/com/workup/users/commands/UpdateFreelancerEducationCommand.java +++ b/services/users/src/main/java/com/workup/users/commands/UpdateFreelancerEducationCommand.java @@ -18,7 +18,7 @@ public UpdateFreelancerEducationResponse Run(UpdateFreelancerEducationRequest re logger.info("Update Freelancer Education"); Optional freelancerOptional = freelancerRepository.findById(request.getUserId()); if (freelancerOptional.isEmpty()) { - logger.info("Freelancer Not Found"); + logger.error("Freelancer Not Found"); return UpdateFreelancerEducationResponse.builder() .withStatusCode(HttpStatusCode.NOT_FOUND) .withErrorMessage("Freelancer Doesn't Exist") diff --git a/services/users/src/main/java/com/workup/users/commands/UpdateFreelancerExperienceCommand.java b/services/users/src/main/java/com/workup/users/commands/UpdateFreelancerExperienceCommand.java index 973431bb..9c6a7b17 100644 --- a/services/users/src/main/java/com/workup/users/commands/UpdateFreelancerExperienceCommand.java +++ b/services/users/src/main/java/com/workup/users/commands/UpdateFreelancerExperienceCommand.java @@ -19,7 +19,7 @@ public UpdateFreelancerExperienceResponse Run(UpdateFreelancerExperienceRequest logger.info("Update Freelancer Experience"); Optional freelancerOptional = freelancerRepository.findById(request.getUserId()); if (freelancerOptional.isEmpty()) { - logger.info("Freelancer Not Found"); + logger.error("Freelancer Not Found"); return UpdateFreelancerExperienceResponse.builder() .withStatusCode(HttpStatusCode.NOT_FOUND) .withErrorMessage("Freelancer Doesn't Exist")