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

Improved logging of HTTP requests #4011

Merged
merged 3 commits into from
Jun 23, 2023
Merged

Improved logging of HTTP requests #4011

merged 3 commits into from
Jun 23, 2023

Conversation

glpatcern
Copy link
Member

No description provided.

@update-docs
Copy link

update-docs bot commented Jun 23, 2023

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

@gmgigi96
Copy link
Member

I would include these info as a trace level, they will be used only during development for debugging. I don't see the point of exposing them on production, even because those headers will contain the reva token, authentication secrets, etc...

@glpatcern
Copy link
Member Author

I would include these info as a trace level, they will be used only during development for debugging.

Good point, we have now two log messages, one is info with minimal information (client host, URI, method, response status) and one is trace with all details.

internal/http/interceptors/log/log.go Outdated Show resolved Hide resolved
@glpatcern glpatcern requested a review from labkode June 23, 2023 12:52
@labkode labkode merged commit b3b619c into cs3org:master Jun 23, 2023
glpatcern added a commit that referenced this pull request Aug 3, 2023
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.

3 participants