Skip to content

Commit a9708ea

Browse files
fix(crash-tracking): Remove exception logging (#8045)
Only log exception in debug mode Decrease the log level
1 parent 0d905c6 commit a9708ea

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

dd-java-agent/agent-crashtracking/src/main/java/com/datadog/crashtracking/OOMENotifierScriptInitializer.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,11 @@ static void run(Path dir) {
124124
Files.walkFileTree(dir, new ScriptCleanupVisitor());
125125
}
126126
} catch (IOException e) {
127-
LOG.warn("Failed cleaning up process specific files in {}", dir, e);
127+
if (LOG.isDebugEnabled()) {
128+
LOG.info("Failed cleaning up process specific files in {}", dir, e);
129+
} else {
130+
LOG.info("Failed cleaning up process specific files in {}: {}", dir, e.toString());
131+
}
128132
}
129133
}
130134

0 commit comments

Comments
 (0)