8144214: Some log messages will be discarded when VM is bootstrapping

Use logp instead of log.

Reviewed-by: dfuchs
This commit is contained in:
Hamlin Li 2015-12-02 19:27:16 -08:00
parent ebceee6674
commit d3f047f9cf

View File

@ -389,9 +389,9 @@ public final class BootstrapLogger implements Logger, PlatformLogger.Bridge,
} 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