Skip to content

Conversation

@ppkarwasz
Copy link
Contributor

Calling Level.forName with a non upper case argument, can create a custom level that can not be retrieved using Level.toLevel.

This PR fixes to upper case the keys in the Level.LEVELS map.

@ppkarwasz ppkarwasz force-pushed the custom-level-capitalization branch from db37ff2 to 66c843c Compare April 7, 2022 21:06
Calling `Level.forName` with a non upper case argument, can create a
custom level that can not be retrieved using `Level.toLevel`.

This PR fixes to upper case the keys in the `Level.LEVELS` map.
@ppkarwasz ppkarwasz force-pushed the custom-level-capitalization branch from 66c843c to c275a78 Compare April 7, 2022 21:14
@ppkarwasz ppkarwasz requested a review from garydgregory April 7, 2022 22:15
@ppkarwasz ppkarwasz merged commit 7f0e350 into apache:release-2.x Apr 8, 2022
@ppkarwasz ppkarwasz deleted the custom-level-capitalization branch April 8, 2022 18:55
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.

2 participants