From 118deb1fa6f77c5e4269198bcc82a6a84075f475 Mon Sep 17 00:00:00 2001 From: nayeem-kamal Date: Fri, 9 Dec 2022 14:11:36 -0500 Subject: [PATCH 1/2] Changed dependency detection resolver log level from warn to debug --- .../datadog/telemetry/dependency/DependencyResolverQueue.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telemetry/src/main/java/datadog/telemetry/dependency/DependencyResolverQueue.java b/telemetry/src/main/java/datadog/telemetry/dependency/DependencyResolverQueue.java index 35e38a6b2a1..d8140658419 100644 --- a/telemetry/src/main/java/datadog/telemetry/dependency/DependencyResolverQueue.java +++ b/telemetry/src/main/java/datadog/telemetry/dependency/DependencyResolverQueue.java @@ -56,7 +56,7 @@ public List pollDependency() { if ("jrt".equals(uri.getScheme()) || "x-internal-jar".equals(uri.getScheme())) { log.debug("unable to detect dependency for URI {}", uri); } else { - log.warn("unable to detect dependency for URI {}", uri); + log.debug("unable to detect dependency for URI {}", uri); } return Collections.emptyList(); } From e07da67ed3bbf915a378b2256f1e5efe0f9934bb Mon Sep 17 00:00:00 2001 From: nayeem-kamal Date: Fri, 9 Dec 2022 14:36:24 -0500 Subject: [PATCH 2/2] Spotbugs fix --- .../telemetry/dependency/DependencyResolverQueue.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/telemetry/src/main/java/datadog/telemetry/dependency/DependencyResolverQueue.java b/telemetry/src/main/java/datadog/telemetry/dependency/DependencyResolverQueue.java index d8140658419..908a73d812f 100644 --- a/telemetry/src/main/java/datadog/telemetry/dependency/DependencyResolverQueue.java +++ b/telemetry/src/main/java/datadog/telemetry/dependency/DependencyResolverQueue.java @@ -53,11 +53,7 @@ public List pollDependency() { List dep = DependencyResolver.resolve(uri); if (dep.isEmpty()) { - if ("jrt".equals(uri.getScheme()) || "x-internal-jar".equals(uri.getScheme())) { - log.debug("unable to detect dependency for URI {}", uri); - } else { - log.debug("unable to detect dependency for URI {}", uri); - } + log.debug("unable to detect dependency for URI {}", uri); return Collections.emptyList(); } if (log.isDebugEnabled()) {