如何在Heroku中跟踪应用程序崩溃?

use*_*521 5 heroku node.js restify

我的REST api heroku应用程序(使用restify)崩溃了,我不知道为什么。在heroku日志中只有一行:

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=
Run Code Online (Sandbox Code Playgroud)

我尝试添加以下内容:

process.on('uncaughtException',function(err){
    console.log('#########');
    console.log(err);
    throw err;
});
Run Code Online (Sandbox Code Playgroud)

但是它不会向日志写入任何内容。

问题是我不知道应用程序是否在http请求期间崩溃,因为即使请求完成后也可能会触发某些功能...

如何跟踪导致我的应用崩溃的原因?