diff --git a/dd-java-agent/agent-crashtracking/src/main/java/com/datadog/crashtracking/OOMENotifierScriptInitializer.java b/dd-java-agent/agent-crashtracking/src/main/java/com/datadog/crashtracking/OOMENotifierScriptInitializer.java index d8e63fe9702d..de2761a8af07 100644 --- a/dd-java-agent/agent-crashtracking/src/main/java/com/datadog/crashtracking/OOMENotifierScriptInitializer.java +++ b/dd-java-agent/agent-crashtracking/src/main/java/com/datadog/crashtracking/OOMENotifierScriptInitializer.java @@ -124,7 +124,11 @@ static void run(Path dir) { Files.walkFileTree(dir, new ScriptCleanupVisitor()); } } catch (IOException e) { - LOG.warn("Failed cleaning up process specific files in {}", dir, e); + if (LOG.isDebugEnabled()) { + LOG.info("Failed cleaning up process specific files in {}", dir, e); + } else { + LOG.info("Failed cleaning up process specific files in {}", dir); + } } }