mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-09 14:34:43 +00:00
Boostrap: Log startup exception to console if needed and to file as error
Closes #6581
This commit is contained in:
parent
3323ac1579
commit
d5e813929c
@ -239,13 +239,10 @@ public class Bootstrap {
|
||||
if (foreground) {
|
||||
System.err.println(errorMessage);
|
||||
System.err.flush();
|
||||
} else {
|
||||
logger.error(errorMessage);
|
||||
}
|
||||
Loggers.disableConsoleLogging();
|
||||
if (logger.isDebugEnabled()) {
|
||||
logger.debug("Exception", e);
|
||||
Loggers.disableConsoleLogging();
|
||||
}
|
||||
logger.error("Exception", e);
|
||||
|
||||
System.exit(3);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user