Skip to content

Commit df27393

Browse files
authored
Remove duplicate config for suppressing logging (#1438)
Can already suppress using APPLICATIONINSIGHTS_INSTRUMENTATION_LOGGING_LEVEL=OFF (and similar in json).
1 parent 9b2bb24 commit df27393

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

agent/agent-tooling/src/main/java/com/microsoft/applicationinsights/agent/internal/BeforeAgentInstaller.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,6 @@ private static void start(Instrumentation instrumentation) throws Exception {
128128
if (!isInstrumentationEnabled(config, "jdbc")) {
129129
properties.put("otel.instrumentation.jdbc.enabled", "false");
130130
}
131-
if (!isInstrumentationEnabled(config, "logging")) {
132-
properties.put("otel.instrumentation.log4j.enabled", "false");
133-
properties.put("otel.instrumentation.java-util-logging.enabled", "false");
134-
properties.put("otel.instrumentation.logback.enabled", "false");
135-
}
136131
if (!isInstrumentationEnabled(config, "redis")) {
137132
properties.put("otel.instrumentation.jedis.enabled", "false");
138133
properties.put("otel.instrumentation.lettuce.enabled", "false");

0 commit comments

Comments
 (0)