Reduce logging from okhttp3.internal.concurrent.TaskRunner (#9814)

This commit is contained in:
Lauri Tulmin 2023-11-07 13:15:12 +02:00 committed by GitHub
parent 8c6f4b06a7
commit da024f9462
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -39,6 +39,8 @@ public final class Slf4jSimpleLoggingCustomizer implements LoggingCustomizer {
if (earlyConfig.getBoolean("otel.javaagent.debug", false)) {
setSystemPropertyDefault(SIMPLE_LOGGER_DEFAULT_LOG_LEVEL_PROPERTY, "DEBUG");
setSystemPropertyDefault(SIMPLE_LOGGER_PREFIX + "okhttp3.internal.http2", "INFO");
setSystemPropertyDefault(
SIMPLE_LOGGER_PREFIX + "okhttp3.internal.concurrent.TaskRunner", "INFO");
}
// trigger loading the provider from the agent CL

View File

@ -27,7 +27,6 @@ public abstract class AbstractTestContainerManager implements TestContainerManag
jvmArgsEnvVarName,
"-Xmx512m -javaagent:/"
+ TARGET_AGENT_FILENAME
+ " -Dio.opentelemetry.javaagent.slf4j.simpleLogger.log.okhttp3.internal.concurrent.TaskRunner=INFO"
// Liberty20Jdk11, Payara6Jdk11 and Payara6Jdk17 fail with
// java.util.zip.ZipException: Invalid CEN header (invalid zip64 extra data field size)
+ " -Djdk.util.zip.disableZip64ExtraFieldValidation=true");