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

Include username in API logs #372

Open
JenySadadia opened this issue Oct 4, 2023 · 1 comment
Open

Include username in API logs #372

JenySadadia opened this issue Oct 4, 2023 · 1 comment

Comments

@JenySadadia
Copy link
Collaborator

In the case of authenticated queries from API, include the username in the API logs for debugging purposes.

For example, API log when a user subscribes to a channel looks like this:

kernelci-api | INFO:     172.20.0.1:42984 - "POST /latest/subscribe/node HTTP/1.1" 200 OK

That should contain username of requesting user:

kernelci-api | INFO:     172.20.0.1:42984 - staging.kernelci.org "POST /latest/subscribe/node HTTP/1.1" 200 OK
@gctucker
Copy link
Contributor

Please add a checklist with things to be done before this issue can be resolved.

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

No branches or pull requests

2 participants