Skip to content

Commit

Permalink
address review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
laurit committed Nov 8, 2024
1 parent b357c0e commit 110c4b5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -118,15 +118,16 @@ private static StackTraceElement getLocation(String loggerClassName) {
}

private static MethodHandle getStackTraceMethodHandle() {
// since 2.9.0
Class<?> stackTraceClass = null;
try {
// since 2.9.0
stackTraceClass = Class.forName("org.apache.logging.log4j.util.StackLocatorUtil");
} catch (ClassNotFoundException exception) {
// ignore
}
if (stackTraceClass == null) {
try {
// before 2.9.0
stackTraceClass = Class.forName("org.apache.logging.log4j.core.impl.Log4jLogEvent");
} catch (ClassNotFoundException exception) {
// ignore
Expand Down

0 comments on commit 110c4b5

Please sign in to comment.