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…
Reference in New Issue