mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8151526: Print -Xlog configuration in the hs_err_pid file
Logging configuration is now printed in hs_err and in vm info. Reviewed-by: coleenp, mlarsson, dholmes
This commit is contained in:
parent
167be2a61c
commit
16c430d2b6
3 changed files with 29 additions and 2 deletions
|
@ -28,6 +28,7 @@
|
|||
#include "compiler/compileBroker.hpp"
|
||||
#include "compiler/disassembler.hpp"
|
||||
#include "gc/shared/collectedHeap.hpp"
|
||||
#include "logging/logConfiguration.hpp"
|
||||
#include "prims/whitebox.hpp"
|
||||
#include "runtime/arguments.hpp"
|
||||
#include "runtime/atomic.inline.hpp"
|
||||
|
@ -774,6 +775,13 @@ void VMError::report(outputStream* st, bool _verbose) {
|
|||
st->cr();
|
||||
}
|
||||
|
||||
STEP(395, "(printing log configuration)")
|
||||
if (_verbose){
|
||||
st->print_cr("Logging:");
|
||||
LogConfiguration::describe_current_configuration(st);
|
||||
st->cr();
|
||||
}
|
||||
|
||||
STEP(400, "(printing all environment variables)" )
|
||||
|
||||
if (_verbose) {
|
||||
|
@ -937,6 +945,11 @@ void VMError::print_vm_info(outputStream* st) {
|
|||
st->cr();
|
||||
}
|
||||
|
||||
// STEP("(printing log configuration)")
|
||||
st->print_cr("Logging:");
|
||||
LogConfiguration::describe(st);
|
||||
st->cr();
|
||||
|
||||
// STEP("(printing all environment variables)")
|
||||
|
||||
os::print_environment_variables(st, env_list);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue