Skip to content

Commit

Permalink
fix(crash-tracking): Remove exception logging (#8045)
Browse files Browse the repository at this point in the history
Only log exception in debug mode
Decrease the log level
  • Loading branch information
PerfectSlayer authored Dec 3, 2024
1 parent 0d905c6 commit a9708ea
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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, e.toString());
}
}
}

Expand Down

0 comments on commit a9708ea

Please sign in to comment.