FrankYang0529 opened a new pull request, #24337:
URL: https://github.com/apache/kafka/pull/24337

   KAFKA-21608: log4j2_template.yaml could create an invalid empty Logger
   
   The streams system test template `log4j2_template.yaml` puts the
   `{% if loggers is defined %}` check below the `Logger:` key, so the key
   is rendered even when no loggers are passed. The key then has no value,
   and log4j2 prints this error when it loads the config:
   
       main ERROR Loggers contains an invalid element or attribute "Logger"
   
   Move the check above `Logger:` so the key is only rendered when there
   are loggers to add. `tools_log4j2.yaml` already does this.


-- 
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]

Reply via email to