How to track application crash in a hero?

My REST api heroku app (using restify) crashes and I don't know why. In heroku logs there is only a line:

at=error code=H10 desc="App crashed" method=GET path=/some/api/path host=some.host.com fwd="83.28.44.34" dyno= connect= service= status=503 bytes= 

I tried to add this:

 process.on('uncaughtException',function(err){ console.log('#########'); console.log(err); throw err; }); 

But he writes nothing to magazines.

The problem is that I don’t know the application crashes during the HTTP request, because there are some functions that can be run even after the request is completed ...

How can I track that my application crashes?

+4
source share

Source: https://habr.com/ru/post/1502668/


All Articles