jvz commented on code in PR #1147:
URL: https://github.com/apache/logging-log4j2/pull/1147#discussion_r1059812091
##########
log4j-core/src/main/java/org/apache/logging/log4j/core/impl/Log4jLogEvent.java:
##########
@@ -786,7 +786,7 @@ public LogEventProxy(final LogEvent event, final boolean
includeLocation) {
this.thrownProxy = event.getThrownProxy();
this.contextData = memento(event.getContextData());
this.contextStack = event.getContextStack();
- this.source = includeLocation ? event.getSource() : null;
+ this.source = includeLocation || !event.isIncludeLocation() ?
event.getSource() : null;
Review Comment:
`LogEventProxy` is not a relevant class in 3.x anymore due to
https://issues.apache.org/jira/browse/LOG4J2-3228
--
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]