mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 05:50:35 +03:00
3ad871b21e
refs https://github.com/TryGhost/Toolbox/issues/163 - as of Node 15, unhandled rejections will exit the process so if Ghost is running on Node 15+ and encounters one, it will kill Ghost - if Sentry is enabled, it will add a handler for the event that will send it to Sentry but the logging is sent to stdout/stderr, which means we lose it in Ghost logs - this commit adds a process handler for the `unhandledRejection` event which will log the reason to Ghost logs and prevent Ghost from exiting |
||
---|---|---|
.. | ||
client@ededa2b16f | ||
frontend | ||
server | ||
shared | ||
app.js | ||
boot.js | ||
bridge.js |