mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
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
c8d0410814
commit
6d3488ea79
1 changed files with 3 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue