Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-12416

Trash messages should be handled by Logger instead of being delivered on System.out

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.6.0
    • Fix Version/s: 2.8.0, 3.0.0-alpha1
    • Component/s: trash
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Incompatible change, Reviewed
    • Release Note:
      Now trash message is not printed to System.out. It is handled by Logger instead.

      Description

      Specifically,

        if (success) {
            System.out.println("Moved: '" + p + "' to trash at: " +
                trash.getCurrentTrashDir() );
          }
      

      should be:

        if (success) {
            LOG.info("Moved: '" + p + "' to trash at: " + trash.getCurrentTrashDir());
          }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                liuml07 Mingliang Liu
                Reporter:
                ashutoshc Ashutosh Chauhan
              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: