Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Set http_logging_policy in Configuration #12218
Set http_logging_policy in Configuration #12218
Changes from 12 commits
602adcd
30ea282
bd84bbe
97308b1
1838882
64b3246
4175acd
23af7f6
f48974c
4c19561
b4ca68a
80dd7d6
91d456b
1c83089
98e6484
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Why? This is a class attribute, so it was correct
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.
I changed that to
self
because having it asHttpLoggingPolicy.
caused a bug inARMHttpLoggingPolicy
.In
ARMHttpLoggingPolicy
, we set the DEFAULT_HEADERS_WHITELIST to beHttpLoggingPolicy
's, plus a couple ARM specific headers (code here). However, by callingHttpLoggingPolicy.DEFAULT_HEADERS_WHITELIST
here, we were setting theallowed_header_names
of aARMHttpLoggingPolicy
to be just theDEFAULT_HEADERS_WHITELIST
ofHttpLoggingPolicy
, not theDEFAULT_HEADERS_WHITELIST
ofARMHttpLoggingPolicy
.If you would like to still keep the code here as
HttpLoggingPolicy.DEFAULT_HEADERS_WHITELIST
, I can change the code inARMHttpLoggingPolicy
to override the setting ofself.allowed_header_names
toARMHttpLoggingPolicy.DEFAULT_HEADERS_WHITELIST
, I just went with this route because it was less code. Let me know @lmazuel !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.
Ok, I get it now. So the correct fix is:
Which means "use the current class attribute list to initialize yourself".
self
means the instance attributes, which is stretch here.