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

Change log level for 4xx on Push API. Do not log on 429 #5103

Merged
merged 3 commits into from
Jan 26, 2023

Conversation

danielblando
Copy link
Collaborator

@danielblando danielblando commented Jan 26, 2023

Signed-off-by: Daniel Deluiggi ddeluigg@amazon.com

What this PR does:
Change the log level from returns of Push API. 5xx still logs error and now 4xx logs warn. Do not log on 429 status to avoid overloading the service

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

Signed-off-by: Daniel Deluiggi <ddeluigg@amazon.com>
Signed-off-by: Daniel Deluiggi <ddeluigg@amazon.com>
Signed-off-by: Daniel Deluiggi <ddeluigg@amazon.com>
@danielblando danielblando changed the title Remove error logs in case API returns 4xx Log warn on 4xx returns from Push instead of error. Do not log on 429 Jan 26, 2023
@danielblando danielblando changed the title Log warn on 4xx returns from Push instead of error. Do not log on 429 Change log level for 4xx on Push API. Do not log on 429 Jan 26, 2023
Copy link
Collaborator

@yeya24 yeya24 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change makes sense to me. Thanks

@alanprot alanprot merged commit 0e83237 into cortexproject:master Jan 26, 2023
alexqyle pushed a commit to alexqyle/cortex that referenced this pull request May 2, 2023
…t#5103)

* Remove error logs in case API returns 4xx

Signed-off-by: Daniel Deluiggi <ddeluigg@amazon.com>

* Update chnagelog

Signed-off-by: Daniel Deluiggi <ddeluigg@amazon.com>

* Change to just not log in 429

Signed-off-by: Daniel Deluiggi <ddeluigg@amazon.com>

Signed-off-by: Daniel Deluiggi <ddeluigg@amazon.com>
Signed-off-by: Alex Le <leqiyue@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants