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

Deliver response code with context #539

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

crazytaxii
Copy link
Contributor

What type of PR is this?

/kind feature

What this PR does / why we need it:

  1. Deliver the response code with context.

  2. Reducing the JSON unmarshal expense of audit middleware.

  3. Optimized log output:

    {"client_ip":"127.0.0.1","error":"密码错误","latency":"9822113µs","level":"error","method":"POST","msg":"FAIL","request_id":"20240914134932-012927","response_code":401,"time":"2024-09-14T13:49:42.029445472+08:00","uri":"/pixiu/users/login"}
    

Does this PR introduce a user-facing change?

NONE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant