-
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/#197] 서버통신 로그 형식 수정 #211
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.
고생하셨습니다~ LGTM🚀
fun String?.isJsonObject(): Boolean = this?.startsWith("{") == true && this.endsWith("}") | ||
|
||
fun String?.isJsonArray(): Boolean = this?.startsWith("[") == true && this.endsWith("]") |
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.
이게 어디서 오신줄 알고있으신가요?
제가 33기때 들고와서 솝트에 퍼졌습니다 ㅋㅋㅋ
|
||
when { | ||
jsonMessage.isJsonObject() -> | ||
Timber.tag("okhttp").d(JSONObject(jsonMessage).toString(4)) |
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.
p3: 4
라는 값이 의미하는게 아마 TAB일거에요.
이걸 UNIT_TAB
이라는 상수로 관리한다면 더욱 의미 전달이 좋을 것 같네요~
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.
오 TAB 맞습니다!! 이건 상수로 관리하는게 훨씬 좋겠네요ㅎㅎ
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.
LGTM 👍
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.
고생하셨습니다~ 빨리 머지대면 좋겠어요ㅠ
Related issue 🛠
Work Description ✏️
Screenshot 📸
as-is

to-be

Uncompleted Tasks 😅
To Reviewers 📢
여기까진 잘 되는거 확인했는데 제가 코드 수정 한번 더 했거든요 그건 서버 열리고 테스트 하고 올려드릴게요ㅎㅎ서버 테스트 완료!! 로그 잘 찍히는거 확인했습니당ㅎㅎ
그리고 등록할 때 이미지도 같이 로그에 찍히는거 너무너무너무너무 불편했는데 이제 dto만 찍히게 stirng 잘라버렸어요ㅎㅎ