Skip to content

Commit 857cc02

Browse files
committed
add unit test
1 parent 1b9194f commit 857cc02

File tree

2 files changed

+2
-1
lines changed
  • instrumentation/log4j/log4j-appender-1.2/javaagent/src

2 files changed

+2
-1
lines changed

instrumentation/log4j/log4j-appender-1.2/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/log4j/appender/v1_2/LogEventMapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public void capture(
129129
if (!lineNumber.equals("?")) {
130130
try {
131131
codeLineNo = Integer.parseInt(lineNumber);
132-
}catch (NumberFormatException e) {
132+
} catch (NumberFormatException e) {
133133
// ignore
134134
}
135135
}

instrumentation/log4j/log4j-appender-1.2/javaagent/src/test/java/io/opentelemetry/instrumentation/log4j/appender/v1_2/Log4j1Test.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ public void test(boolean logException, boolean withParent) throws InterruptedExc
106106
test(Logger::error, Logger::error, logException, withParent, "abc", Severity.ERROR, "ERROR");
107107
testing.clearData();
108108
}
109+
109110
private static void test(
110111
LoggerMethod loggerMethod,
111112
ExceptionLoggerMethod exceptionLoggerMethod,

0 commit comments

Comments
 (0)