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 9, 2024
1 parent a880293 commit 3eca7a1
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 3eca7a1

Please sign in to comment.