Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-4160

Make verbose mode more user-friendly

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Ozone CLI
    • None

    Description

      GenericCli-based commands have a --verbose flag, which has two effects:

      1. some subcommands print additional details
      2. stack trace is shown in case of exception

      I think (1) is more generally useful, while (2) is geared towards developers. To avoid making --verbose commands overwhelming for users in case of errors, I propose to split these two effects.

      Possible solutions:

      1. multi-level --verbose mode (allow specifying -v more than once to get more details)
      2. introduce a new flag to enable the stack trace
      3. only print the stack trace if exception message is not meaningful (eg. empty or "null")

      Attachments

        Activity

          People

            Unassigned Unassigned
            adoroszlai Attila Doroszlai
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: