HADOOP-12416. Trash messages should be handled by Logger instead of being delivered on System.out. Contributed by Mingliang Liu.

This commit is contained in:
Akira Ajisaka 2015-09-16 10:20:24 +09:00
parent 6c52be78a0
commit 77aaf4cf7d
2 changed files with 4 additions and 2 deletions

View File

@ -521,6 +521,9 @@ Release 2.8.0 - UNRELEASED
HADOOP-11746. rewrite test-patch.sh (aw) HADOOP-11746. rewrite test-patch.sh (aw)
HADOOP-12416. Trash messages should be handled by Logger instead of being
delivered on System.out. (Mingliang Liu via aajisaka)
NEW FEATURES NEW FEATURES
HADOOP-11226. Add a configuration to set ipc.Client's traffic class with HADOOP-11226. Add a configuration to set ipc.Client's traffic class with

View File

@ -94,8 +94,7 @@ public class Trash extends Configured {
Trash trash = new Trash(fullyResolvedFs, conf); Trash trash = new Trash(fullyResolvedFs, conf);
boolean success = trash.moveToTrash(fullyResolvedPath); boolean success = trash.moveToTrash(fullyResolvedPath);
if (success) { if (success) {
System.out.println("Moved: '" + p + "' to trash at: " + LOG.info("Moved: '" + p + "' to trash at: " + trash.getCurrentTrashDir());
trash.getCurrentTrashDir() );
} }
return success; return success;
} }