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

*: Handling query logging for code 3xx #3181

Merged
merged 4 commits into from
Sep 18, 2020
Merged

Conversation

aribalam
Copy link
Contributor

@aribalam aribalam commented Sep 16, 2020

  • I added CHANGELOG entry for this change.
  • Change is not relevant to the end user.

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

@yashrsharma44
Copy link
Contributor

Can you fix the failing tests, this seems due to DCO - https://github.com/thanos-io/thanos/blob/master/CONTRIBUTING.md#pull-request-process

@yashrsharma44
Copy link
Contributor

@kakkoyun @bwplotka Should we handle the 3xx in the info or debug?

@onprem
Copy link
Member

onprem commented Sep 16, 2020

In my opinion, 3XX status codes are expected and a bit verbose so they should go under the debug level.

@yeya24
Copy link
Contributor

yeya24 commented Sep 16, 2020

@aribalam Can you please also update the changelog? This is a user-facing change. Thank you!

@aribalam aribalam changed the title Handling logging for code 3xx query-frontend: Handling logging for code 3xx Sep 17, 2020
@aribalam
Copy link
Contributor Author

As @prmsrswt suggested, the logging was changed to the debug level. Also @yeya24 the changelog has been updated.

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
Copy link
Contributor

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?

Copy link
Contributor

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.

Copy link
Contributor Author

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 <[email protected]>
Copy link
Member

@kakkoyun kakkoyun left a 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.

@kakkoyun kakkoyun changed the title query-frontend: Handling logging for code 3xx *: Handling query logging for code 3xx Sep 18, 2020
@kakkoyun kakkoyun merged commit 5f5b15e into thanos-io:master Sep 18, 2020
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.

query-frontend: 302/304 logged as error
5 participants