Always log fatal errors (#15319)

Reverts change in c1ef3d892f

If an error is raised before the logger is setup, then the server will exit without any notice.

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
This commit is contained in:
Tyler Smalley 2017-12-01 12:55:47 -08:00 committed by Tyler Smalley
parent 789ad24c84
commit d9a9080769

View file

@ -187,7 +187,8 @@ export default function (program) {
function logFatal(message, server) {
if (server) {
server.log(['fatal'], message);
} else {
console.error('FATAL', message);
}
// It's possible for the Hapi logger to not be setup
console.error('FATAL', message);
}