ramanathan1504 commented on code in PR #4458: URL: https://github.com/apache/logging-log4j2/pull/4458#discussion_r4483159691
########## src/changelog/.2.x.x/4457_java_lookup_unknown_key.xml: ########## @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<entry xmlns="https://logging.apache.org/xml/ns" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation=" + https://logging.apache.org/xml/ns + https://logging.apache.org/xml/ns/log4j-changelog-0.xsd" + type="fixed"> + <issue id="4457" link="https://github.com/apache/logging-log4j2/issues/4457"/> + <description format="asciidoc"> + Return `null` from `JavaLookup` for an unknown key instead of throwing `IllegalArgumentException`, so that the default lookup is used. Review Comment: Add the PR link after the issue line, and keep the description to what the user sees. ```suggestion <issue id="4457" link="https://github.com/apache/logging-log4j2/issues/4457"/> <issue id="4458" link="https://github.com/apache/logging-log4j2/pull/4458"/> <description format="asciidoc"> Fix `${java:...}` logging an error for an unknown key. ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
