rfcx / rfcx-api

Core, Media/Assets and MQTT APIs
https://api.rfcx.org/docs/
Apache License 2.0
0 stars 0 forks source link

fix: now core-api will log unhandled rejections #604

Closed veckatimest closed 4 months ago

veckatimest commented 4 months ago

✅ DoD

(use na when API docs (Release notes, etc) do not need to be updated)

📝 Summary

This PR adds handling to Unhandled Rejections and Uncaught errors. Currently, when the pod dies, it's logs are empty regarding the reason of the pod exiting. This PR might help us understand what was the reason for the pod to finish.

📸 Examples

Put screenshots or response/request examples here!

🛑 Problems

We use "console logger" that should already work without these changes. So I have also added "signal" handler to get a message if the pod is killed by the k8s.

💡 More ideas

Write any more ideas you have