Skip to content

trivial:유의미한 데이터를 log 로 남기기#338

Merged
rladmstn merged 12 commits intodevelopfrom
trivial#332
Apr 6, 2025
Merged

trivial:유의미한 데이터를 log 로 남기기#338
rladmstn merged 12 commits intodevelopfrom
trivial#332

Conversation

@s-hwan
Copy link
Contributor

@s-hwan s-hwan commented Feb 26, 2025

📌 Related Issue

close #332

🚀 Description

  • 조회하는 메소드를 제외하고 api를 요청하는 user의 id를 로그로 달아보았습니다

📢 Review Point

  • 보통 id 를 로그에 기록했는데 제 마음대로 백준 닉네임을 로그에 담은 경우도 있는데 ..긴가 민가 한 게 있었습니다
  • 그리고 예외를 던지는 경우에도 log 를 남겨줘야하나 고민이 됐습니다 피드백 주시면 감사하겠습니다!

@s-hwan s-hwan added the trivial 로직과 관계없는 사소한 것들 label Feb 26, 2025
@s-hwan s-hwan requested review from rladmstn and sh0723 February 26, 2025 09:36
@s-hwan s-hwan self-assigned this Feb 26, 2025
@github-actions
Copy link

github-actions bot commented Feb 26, 2025

Test Results

 18 files   18 suites   6s ⏱️
304 tests 304 ✅ 0 💤 0 ❌
306 runs  306 ✅ 0 💤 0 ❌

Results for commit 67d1fea.

♻️ This comment has been updated with latest results.


sendNewMemberNotification(studyGroup, member);
log.info("success to join study group");
log.info("success to join study group user_id={} ", user.getId());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

요런 것도 어떤 그룹에 참여했는지 정보 주면 좋지 않을까요?

Copy link
Contributor

@rladmstn rladmstn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

지금 전체적으로 user id만 추가해준 것들이 많네요!!

만약 그룹 수정 log에서 어떤 유저가 무슨 그룹의 정보를 수정했는지 알 수 있으려면 group id도 함께 표시하는 게 좋지 않을까 싶습니다!

저도 사실 좋은 log를 만들어 본 적이 없었어서 잘 모르지만 아래같은 글 찾아보고 무슨 정보를 넣으면 좋을지 고민해볼 것 같습니담

http://bonschicken.tistory.com/144

+) 커밋 메세지 잘쓰삼!! head가 없어요!!

Copy link
Contributor

@sh0723 sh0723 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

저도 은수 의견에 동의합니다 !!
상당히 노가다성 작업인데 고생 많으셨어요 ,, 은수 PR만 반영해주시면 될거같네요 !

@s-hwan s-hwan changed the title Trivial:유의미한 데이터를 log 로 남기기 trivial:유의미한 데이터를 log 로 남기기 Mar 4, 2025
@s-hwan
Copy link
Contributor Author

s-hwan commented Mar 5, 2025

지금 전체적으로 user id만 추가해준 것들이 많네요!!

만약 그룹 수정 log에서 어떤 유저가 무슨 그룹의 정보를 수정했는지 알 수 있으려면 group id도 함께 표시하는 게 좋지 않을까 싶습니다!

저도 사실 좋은 log를 만들어 본 적이 없었어서 잘 모르지만 아래같은 글 찾아보고 무슨 정보를 넣으면 좋을지 고민해볼 것 같습니담

http://bonschicken.tistory.com/144

+) 커밋 메세지 잘쓰삼!! head가 없어요!!

링크 달아주신 글 잘 읽어봤습니다 log 다는 것도 디테일이 필요하네요 저도 처음엔 group id 를 함께 적어볼까 생각했는데
로그가 너무 길어질 것 같아서 user Id 만 달았었습니다 글 읽어보고 group id 필요성을 느껴 피드백 반영하겠습니다

그리고 저희가 공유하는 로그를 쓰는 규칙이 없으니 이러다 같은 이슈가 반복될 것 같아 이번 코어 타임 때
로그를 쓰는 규칙을 정하는 건 어떨지 궁급합니다

+) 커밋 메세지 head 어떻게 쓰는 지 잘 모르겠습니다..

++) 로그 규칙을 정하고 진행하는게 좋을 것 같아서 좀만 미뤄보겠습니다..

@rladmstn
Copy link
Contributor

rladmstn commented Mar 6, 2025

그리고 저희가 공유하는 로그를 쓰는 규칙이 없으니 이러다 같은 이슈가 반복될 것 같아 이번 코어 타임 때 로그를 쓰는 규칙을 정하는 건 어떨지 궁급합니다
++) 로그 규칙을 정하고 진행하는게 좋을 것 같아서 좀만 미뤄보겠습니다..

로그 컨벤션 정하는 것 좋습니다!! 어떤 로그 컨벤션이 좋은지 같이 이야기 해보는 게 좋을 것 같네용

+) 커밋 메세지 head 어떻게 쓰는 지 잘 모르겠습니다..

https://velog.io/@shin6403/Git-git-%EC%BB%A4%EB%B0%8B-%EC%BB%A8%EB%B2%A4%EC%85%98-%EC%84%A4%EC%A0%95%ED%95%98%EA%B8%B0
commit type 정도만 참고해서 작성하심 될 것 같습니다 아마 거의 feat, refactor, fix 정도가 자주 쓰이고 나머지는 잘 안쓰일거에요

@hwangjokim
Copy link
Contributor

로그는 코타때 서버끼리 논의해봐요~ 리뷰는 그 때 합니다.

@s-hwan s-hwan requested a review from rladmstn March 10, 2025 05:45
deleteAllAboutGroup(group);

log.info("success to delete study group");
log.info("success to delete study group user_id={}, group_id={}", user.getId(), groupId);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이런건 target user가 더 중요할까요 아님 탈퇴 시킨 user id가 더 중요할까요?
저는 target user도 들가면 좋긴 할 것 같은데 나중에 하시죠

Copy link
Contributor

@hwangjokim hwangjokim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

다른분 믿고 그냥 어프로브 누릅니다~ (안봄)

@rladmstn rladmstn merged commit 481f44f into develop Apr 6, 2025
2 checks passed
hwangjokim pushed a commit that referenced this pull request Apr 8, 2025
* group 수정

* notice log

* problem log 수정

* solution log 수정

* user log 수정

* trivial:user,problem log 수정

* trivial : noti log 수정

* trivial:notice log 수정

* trivial:group log 수정

* trivial:merge develop branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

trivial 로직과 관계없는 사소한 것들

Projects

None yet

Development

Successfully merging this pull request may close these issues.

trivial : 로그에 데이터 관련 content 추가

4 participants