From ba89a25f2c809335a811d417538eff259f01c736 Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Tue, 8 Aug 2023 21:03:56 +0200 Subject: [PATCH] [Backport 2.x] Remove log spam for files that are cleaned up (#3124) Backport f299a5f9094597648fbb147e74166d48090df6c9 from #3118. Signed-off-by: Peter Nied Signed-off-by: github-actions[bot] Co-authored-by: github-actions[bot] --- .../opensearch/security/test/helper/cluster/ClusterHelper.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/test/java/org/opensearch/security/test/helper/cluster/ClusterHelper.java b/src/test/java/org/opensearch/security/test/helper/cluster/ClusterHelper.java index 5a175f57f7..344b7cddc2 100644 --- a/src/test/java/org/opensearch/security/test/helper/cluster/ClusterHelper.java +++ b/src/test/java/org/opensearch/security/test/helper/cluster/ClusterHelper.java @@ -319,14 +319,12 @@ private void deleteTestsDataDirectory() throws IOException { Files.walkFileTree(testsDataDir.toPath(), new SimpleFileVisitor<>() { @Override public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException { - System.out.println("Deleting file " + file.getFileName()); Files.delete(file); return FileVisitResult.CONTINUE; } @Override public FileVisitResult postVisitDirectory(Path dir, IOException exc) throws IOException { - System.out.println("Deleting directory " + dir.getFileName()); Files.delete(dir); return FileVisitResult.CONTINUE; }