Avoid NoSuchMethodError on shutdown
MODIFY
javaagent-bootstrap/src/main/java/io/opentelemetry/javaagent/bootstrap/PatchLogger.java
javaagent-bootstrap/src/main/java/io/opentelemetry/javaagent/bootstrap/PatchLogger.java
@@ -7,6 +7,7 @@ package io.opentelemetry.javaagent.bootstrap;
import java.text.MessageFormat;
import java.util.ResourceBundle;
+import java.util.logging.Handler;
import java.util.logging.Level;
import java.util.logging.LogRecord;
@@ -327,6 +328,10 @@ public class PatchLogger {
public void setLevel(Level newLevel) {}
+ public Handler[] getHandlers() {
+ return new Handler[0];
+ }
+
public static PatchLogger getAnonymousLogger() {
return getLogger("");
}

Avoid NoSuchMethodError on shutdown (#2321)