-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
*: Handling query logging for code 3xx #3181
Conversation
Can you fix the failing tests, this seems due to DCO - https://github.com/thanos-io/thanos/blob/master/CONTRIBUTING.md#pull-request-process |
In my opinion, 3XX status codes are expected and a bit verbose so they should go under the |
Signed-off-by: aribalam <arib.alam.iitkgp@gmail.com>
@aribalam Can you please also update the changelog? This is a user-facing change. Thank you! |
Signed-off-by: aribalam <arib.alam.iitkgp@gmail.com>
Signed-off-by: aribalam <arib.alam.iitkgp@gmail.com>
As @prmsrswt suggested, the logging was changed to the |
CHANGELOG.md
Outdated
@@ -13,6 +13,7 @@ We use *breaking :warning:* to mark changes that are not backward compatible (re | |||
|
|||
### Added | |||
|
|||
- [#3181](https://github.com/thanos-io/thanos/pull/3181) Query Frontend: Add debug level logging for responses between 300-399 |
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.
It is not specific to Query Frontend
component. This change is for the logging library and I think all components with an HTTP server are using it. @yashrsharma44 Hi, can you please help confirm this?
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.
Yeah, it is not a Query Frontend
component issue.
@aribalam can you change the component to Logging
, because the change affects all the components which use logging.
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.
Changed! :)
Signed-off-by: aribalam <arib.alam.iitkgp@gmail.com>
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.
🥇 Thanks a lot for the contribution.
Changes
Fixes #3174
Handled logging for return codes 3xx at Info level. Initially the responses were logged as error
@yashrsharma44 @yeya24 Please let me know if it should be handled in any other way.
Verification