diff --git a/dd-java-agent/instrumentation-annotation-processor/src/main/java/datadog/apt/LogUtils.java b/dd-java-agent/instrumentation-annotation-processor/src/main/java/datadog/apt/LogUtils.java index 8f51e1e750b..34c0925ff4c 100644 --- a/dd-java-agent/instrumentation-annotation-processor/src/main/java/datadog/apt/LogUtils.java +++ b/dd-java-agent/instrumentation-annotation-processor/src/main/java/datadog/apt/LogUtils.java @@ -10,24 +10,25 @@ private LogUtils() {} private static final boolean NOTE = false; - public static final void log( - ProcessingEnvironment processingEnv, String formatStr, Object... args) { + public static void log(ProcessingEnvironment processingEnv, String formatStr, Object... args) { String msg = String.format(formatStr, args); - processingEnv.getMessager().printMessage(Kind.NOTE, msg); + if (NOTE) { + processingEnv.getMessager().printMessage(Kind.NOTE, msg); + } } - public static final void warning( + public static void warning( ProcessingEnvironment processingEnv, Element element, String formatStr, Object... args) { message(processingEnv, element, Kind.WARNING, formatStr, args); } - public static final void error( + public static void error( ProcessingEnvironment processingEnv, Element element, String formatStr, Object... args) { message(processingEnv, element, Kind.ERROR, formatStr, args); } - public static final void message( + public static void message( ProcessingEnvironment processingEnv, Element element, Kind kind,