-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add logging to user profile data #93
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some suggestions
Nothing critical though, otherwise LGTM
Optional<Freelancer> freelancerOptional = freelancerRepository.findById(request.getUserId()); | ||
if (freelancerOptional.isEmpty()) | ||
if (freelancerOptional.isEmpty()) { | ||
logger.info("Freelancer Not Found"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe it would be better if this and other similar situations are logged as errors
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@Override | ||
public AddFreelancerAchievementResponse Run(AddFreelancerAchievementRequest request) { | ||
logger.info("Add Freelancer Achievement"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think including the requesting user's id would make the logs clearer for this and other function call logs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
16cd872
to
5f7a8fe
Compare
No description provided.