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,
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,