changeset 13253:22ec68cc2b16

8144214: Some log messages will be discarded when VM is bootstrapping Summary: use logp instead of log. Reviewed-by: dfuchs
author mli
date Wed, 02 Dec 2015 19:27:16 -0800
parents 9cbafdcf937d
children 7cc5e8fd62c9
files src/java.base/share/classes/jdk/internal/logger/BootstrapLogger.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/share/classes/jdk/internal/logger/BootstrapLogger.java	Thu Dec 03 11:57:14 2015 +0000
+++ b/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