-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[fix][broker] Fix invalid condition in logging exceptions #22412
[fix][broker] Fix invalid condition in logging exceptions #22412
Conversation
…riable isNot307And404Exception
@teet-vaher-sympower Please add the following content to your PR description and select a checkbox:
|
Great discovery. Thanks for the contribution @teet-vaher-sympower ! |
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.
LGTM
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.
lgtm
(cherry picked from commit cd6f53b)
(cherry picked from commit cd6f53b)
(cherry picked from commit cd6f53b)
(cherry picked from commit cd6f53b)
(cherry picked from commit cd6f53b)
(cherry picked from commit cd6f53b)
Fixes #22409
Motivation
If Admin API request is sent to the broker and it responds with 307-redirect (for example in case of the bundle is not served by this broker) then ERROR is written into the broker log file. And there are quite a lot of these errors.
broker log:
Modifications
Issue #21995 introduced a new variable
isNot307And404Exception
. Previous code was substituted with the new variable in multiple places, but the exclamation mark in front of the variable (part of the previous code) was not removed. This PR removes the remaining unnecessary exclamation marks.Verifying this change
This change is a trivial rework / code cleanup without any test coverage.
Does this pull request potentially affect one of the following parts:
If the box was checked, please highlight the changes
Documentation
doc
doc-required
doc-not-needed
doc-complete
Matching PR in forked repository
PR in forked repository: teet-vaher-sympower#1