Skip to content

Changing HeaderWarning to always use 299 as the warning code (#80304)#80503

Merged
masseyke merged 2 commits intoelastic:7.16from
masseyke:backport/7.16/pr-80304
Nov 8, 2021
Merged

Changing HeaderWarning to always use 299 as the warning code (#80304)#80503
masseyke merged 2 commits intoelastic:7.16from
masseyke:backport/7.16/pr-80304

Conversation

@masseyke
Copy link
Copy Markdown
Member

@masseyke masseyke commented Nov 8, 2021

This commit changes the deprecation logger so that all messages (critical or warning) are written
out with "299" as the level at the beginning of the header in order to be compliant with
https://www.rfc-editor.org/rfc/rfc7234.html#section-5.5.7. In #79107 we mistakenly began logging
warning-level messages with the 300 code, which is not valid in the RFC.

…#80304)

This commit changes the deprecation logger so that all messages (critical or warning) are written
out with "299" as the level at the beginning of the header in order to be compliant with
https://www.rfc-editor.org/rfc/rfc7234.html#section-5.5.7. In elastic#79107 we mistakenly began logging
warning-level messages with the 300 code, which is not valid in the RFC.
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-data-management (Team:Data Management)

@masseyke masseyke merged commit e4271b6 into elastic:7.16 Nov 8, 2021
@masseyke masseyke deleted the backport/7.16/pr-80304 branch November 8, 2021 17:43
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.

4 participants