Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8224594

Simplify jpackage Logging

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: internal
    • Fix Version/s: internal
    • Component/s: tools

      Description

      two proposed changes to jdk.jpackage.internal.Log and it's usage:

      1.) remove debug(String) and debug(Throwable)., and replace usage with verbose(). These two methods are nearly identical, and there should be no difference between using the --verbose option and setting the JPACKAGE_DEBUG env variable.

      2.) Add a method : error(Throwable t) which can be used where we currently call both error(t.getMessage()) and verbose(t).
      The new method should translate a message such as "Unexpected Exception: {0}" (with {0} being the t.getMessage()) and print it to the error stream, then if verbose print the stack trace,

        Attachments

          Activity

            People

            Assignee:
            herrick Andy Herrick
            Reporter:
            herrick Andy Herrick
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: