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:
parent
789ad24c84
commit
d9a9080769
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue