when.js 未処理の拒否をトラップして、ログに記録できるようにしたいと思います。これを達成するために、console.warn() をオーバーライドしましたが、これにより、興味のない when.js 以外のものをログに記録できます。
参照: https://github.com/cujojs/when/blob/master/docs/api.md#debugging-promises
when.jsでprettymonitorを使用しています https://github.com/AriaMinaei/pretty-monitor