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

Simplify jpackage Logging

XMLWordPrintable

      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,

            herrick Andy Herrick (Inactive)
            herrick Andy Herrick (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: