ppkarwasz commented on a change in pull request #786:
URL: https://github.com/apache/logging-log4j2/pull/786#discussion_r820202030
##########
File path: log4j-1.2-api/src/main/java/org/apache/log4j/Category.java
##########
@@ -376,7 +376,7 @@ public Appender getAppender(final String name) {
if (appender == null && LogManager.isLog4jCorePresent()) {
final org.apache.logging.log4j.core.Appender coreAppender =
CategoryUtil.getAppenders(logger).get(name);
if (coreAppender != null) {
- addAppender(appender = new AppenderWrapper(coreAppender));
+ addAppender(appender = AppenderWrapper.wrap(coreAppender));
Review comment:
This is the main change: if `coreAppender` is an `AppenderAdapter` and
**no** filters are configured, then the wrapped object is returned.
@garydgregory: can you check if this is Ok?
--
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]