Skip to content

Commit 39cec0a

Browse files
committed
fix
1 parent 8ea2ace commit 39cec0a

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

smoke-tests/apps/Log4j1/src/main/java/com/microsoft/applicationinsights/smoketestapp/Log4j1WithExceptionServlet.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
package com.microsoft.applicationinsights.smoketestapp;
55

66
import java.lang.reflect.Field;
7-
import java.util.logging.Level;
8-
97
import javax.servlet.annotation.WebServlet;
108
import javax.servlet.http.HttpServlet;
119
import javax.servlet.http.HttpServletRequest;
@@ -37,7 +35,7 @@ public class Log4j1WithExceptionServlet extends HttpServlet {
3735
@Override
3836
protected void doGet(HttpServletRequest request, HttpServletResponse response) {
3937
MDC.put("MDC key", "MDC value");
40-
String testNullMessage = request.getParameter("test-null-message");
38+
String testNullMessage = request.getParameter("test-null-message");
4139
if ("true".equalsIgnoreCase(testNullMessage)) {
4240
logger.error("This is an exception!", new Exception());
4341
} else {

smoke-tests/apps/Logback/src/smokeTest/java/com/microsoft/applicationinsights/smoketest/LogbackTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ private void testWithException(boolean testNullMessage) throws Exception {
162162
"ClassName",
163163
"com.microsoft.applicationinsights.smoketestapp.LogbackWithExceptionServlet")
164164
.containsEntry("MethodName", "doGet")
165-
.containsEntry("LineNumber", "21")
165+
.containsEntry("LineNumber", "25")
166166
.hasSize(9);
167167
} else {
168168
assertThat(ed.getProperties()).hasSize(5);

0 commit comments

Comments
 (0)