Boostrap: Log startup exception to console if needed and to file as error

Closes #6581
This commit is contained in:
Mark J Greene 2014-06-20 11:01:01 -04:00 committed by Boaz Leskes
parent 3323ac1579
commit d5e813929c
1 changed files with 3 additions and 6 deletions

View File

@ -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);
}
}