8144214: Some log messages will be discarded when VM is bootstrapping
Summary: use logp instead of log.
Reviewed-by: dfuchs
--- a/jdk/src/java.base/share/classes/jdk/internal/logger/BootstrapLogger.java Thu Dec 03 11:57:14 2015 +0000
+++ b/jdk/src/java.base/share/classes/jdk/internal/logger/BootstrapLogger.java Wed Dec 02 19:27:16 2015 -0800
@@ -389,9 +389,9 @@
} else {
if (msgSupplier != null) {
if (thrown != null) {
- logger.log(platformLevel, sourceClass, sourceMethod, thrown, msgSupplier);
+ logger.logp(platformLevel, sourceClass, sourceMethod, thrown, msgSupplier);
} else {
- logger.log(platformLevel,sourceClass, sourceMethod, msgSupplier);
+ logger.logp(platformLevel, sourceClass, sourceMethod, msgSupplier);
}
} else {
// BootstrapLoggers are never localized so we can safely