Skip to content
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

Refactor: Logging improvement for api gateway. #15

Merged
merged 5 commits into from
Feb 14, 2023
Merged

Conversation

nicognaW
Copy link
Member

Remove authenticate API.

TODO: integrate with kitex biz error stuff mentioned at #5

@nicognaW nicognaW added the enhancement New feature or request label Feb 13, 2023
@nicognaW nicognaW self-assigned this Feb 13, 2023
@shaokeyibb shaokeyibb mentioned this pull request Feb 13, 2023
5 tasks
Unable2UploadVideo = 500003
Unable2UploadCover = 500004
Unable2CreateDBEntry = 500005
InvalidContentType = 400101
Copy link
Contributor

Choose a reason for hiding this comment

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

Why use X0010X?

Copy link
Member Author

Choose a reason for hiding this comment

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

The first 3 digits represent the http status code, last 3 are IDs. Feel free to provide a better coding solution if you prefer.

Remove authenticate API.
@nicognaW nicognaW force-pushed the logging-improvement branch from 4d97223 to ced2276 Compare February 13, 2023 14:54
Fix large log.
Read token using FormValue.
Add latestTime empty case.
Return anonymous user for nil request(possible kitex bug).
Extract method fields from CreateVideo log.
@nicognaW nicognaW force-pushed the logging-improvement branch from c985702 to 1ed627f Compare February 13, 2023 16:37
@nicognaW nicognaW merged commit d13685c into main Feb 14, 2023
@nicognaW nicognaW deleted the logging-improvement branch February 14, 2023 00:58
shaokeyibb added a commit that referenced this pull request Feb 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants