From a77be92e1d760de2c318a10f2df0d34c57dbd505 Mon Sep 17 00:00:00 2001 From: Anthony Tseng Date: Mon, 12 Dec 2016 15:33:19 +0800 Subject: [PATCH] Print stack to trace where the warning comes from Auditors: @mrose17, @bbondy --- app/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/index.js b/app/index.js index 1c4bf963ed1..de533491c0b 100644 --- a/app/index.js +++ b/app/index.js @@ -36,6 +36,8 @@ process.on('unhandledRejection', function (error, promise) { handleUncaughtError(error) }) +process.on('warning', warning => console.warn(warning.stack)) + if (process.platform === 'win32') { require('./windowsInit') }