-
Notifications
You must be signed in to change notification settings - Fork 2
trivial:유의미한 데이터를 log 로 남기기 #338
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
Merged
Merged
Changes from 5 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
137bd0d
group 수정
s-hwan 3f07f93
notice log
s-hwan cc005c4
problem log 수정
s-hwan ac3e174
solution log 수정
s-hwan 94e2a42
user log 수정
s-hwan 4d83ffa
trivial:user,problem log 수정
s-hwan ed6c644
trivial : noti log 수정
s-hwan 8fa270b
trivial:notice log 수정
s-hwan b2f0e2f
trivial:group log 수정
s-hwan 3b1d65f
Merge branch 'develop' of https://github.com/GAMZA-BAT/ALGOHUB-SERVER…
s-hwan 789903a
trivial:merge develop branch
s-hwan 67d1fea
trivial:resolve conflict
s-hwan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -121,7 +121,7 @@ public GroupCodeResponse createGroup(User user, CreateGroupRequest request, Mult | |
| ); | ||
|
|
||
| saveGroupImage(profileImage, group); | ||
| log.info("success to save study group"); | ||
| log.info("success to save study group user_id={}", user.getId()); | ||
| return new GroupCodeResponse(inviteCode); | ||
| } | ||
|
|
||
|
|
@@ -154,7 +154,7 @@ public GetGroupIdResponse joinGroupWithCode(User user, String code) { | |
| ); | ||
|
|
||
| sendNewMemberNotification(studyGroup, member); | ||
| log.info("success to join study group"); | ||
| log.info("success to join study group user_id={} ", user.getId()); | ||
|
|
||
| return new GetGroupIdResponse(studyGroup.getId()); | ||
|
|
||
|
|
@@ -175,7 +175,7 @@ public void deleteGroup(User user, Long groupId) { | |
|
|
||
| deleteAllAboutGroup(group); | ||
|
|
||
| log.info("success to delete study group"); | ||
| log.info("success to delete study group user_id={}, group_id={}", user.getId(), groupId); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 이런건 target user가 더 중요할까요 아님 탈퇴 시킨 user id가 더 중요할까요? |
||
| } | ||
|
|
||
| private void deleteAllAboutGroup(StudyGroup group) { | ||
|
|
@@ -216,7 +216,7 @@ public void exitGroup(User user, Long groupId) { | |
| } | ||
| } | ||
|
|
||
| log.info("success to exit study group"); | ||
| log.info("success to exit study group user_id={}", user.getId()); | ||
| } | ||
|
|
||
| @Transactional | ||
|
|
@@ -237,6 +237,7 @@ public void deleteMember(User user, Long userId, Long groupId) { | |
| () -> new GroupMemberValidationException(HttpStatus.BAD_REQUEST.value(), "이미 참여하지 않은 회원입니다.")); | ||
|
|
||
| studyGroupServiceProvider.getObject().deleteMemberFromStudyGroup(user, groupMember, group); | ||
| log.info("success to delete member user_id={}", user.getId()); | ||
| } else { | ||
| throw new UserValidationException("멤버를 삭제 할 권한이 없습니다."); | ||
| } | ||
|
|
@@ -250,7 +251,7 @@ public void deleteMemberFromStudyGroup(User user, GroupMember groupMember, Study | |
| solutionRepository.deleteAllByStudyGroupAndUser(studyGroup, user); | ||
| noticeReadRepository.deleteAllByStudyGroupAndUser(studyGroup, user); | ||
| groupMemberRepository.delete(groupMember); | ||
| log.info("success to delete group member"); | ||
| log.info("success to delete group member user_id = {}", user.getId()); | ||
| } | ||
|
|
||
| @Transactional(readOnly = true) | ||
|
|
@@ -336,7 +337,7 @@ public void editGroup(User user, Long groupId, EditGroupRequest request, Multipa | |
| if (request.introduction() != null && !request.introduction().isEmpty()) | ||
| group.editGroupIntroduction(request.introduction()); | ||
|
|
||
| log.info("success to edit group info"); | ||
| log.info("success to edit group info user_id={}", user.getId()); | ||
| } | ||
|
|
||
| private void editGroupImage(MultipartFile inputImage, StudyGroup group, Boolean isDefaultImage) { | ||
|
|
@@ -534,7 +535,7 @@ public void updateGroupMemberRole(User user, Long groupId, UpdateGroupMemberRole | |
| if (RoleOfGroupMember.isOwner(member) && request.role() != null) { | ||
| owner.updateRole(RoleOfGroupMember.PARTICIPANT); | ||
| } | ||
| log.info("success to update group member role"); | ||
| log.info("success to update group member role user_id={}", user.getId()); | ||
| } | ||
|
|
||
| @Transactional(readOnly = true) | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
요런 것도 어떤 그룹에 참여했는지 정보 주면 좋지 않을까요?