From 90f4996d9d8f2d3b426deef0d073e4aede6fe92c Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sat, 25 Apr 2015 02:14:02 -0400 Subject: [PATCH] Remove some excessive error logging from Bluebird And hide errors from DB transaction rollback tests --- resource/bluebird.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/resource/bluebird.js b/resource/bluebird.js index 5e5625ff6..5f75db29a 100644 --- a/resource/bluebird.js +++ b/resource/bluebird.js @@ -70,7 +70,6 @@ Components.classes["@mozilla.org/consoleservice;1"] .getService(Components.interfaces.nsIConsoleService) .logMessage(scriptError); - self.debug(err, 1); self.debug(err.stack, 1); } }}, ms, Components.interfaces.nsITimer.TYPE_ONE_SHOT); @@ -86,9 +85,10 @@ // TEMP: Only turn on if debug logging enabled? Promise.longStackTraces(); Promise.onPossiblyUnhandledRejection(function(error) { - self.debug('==========='); - self.debug(error); - self.debug(error.stack); + // Ignore some errors during tests + if (error.message && error.message.indexOf(' -- ignore') != -1) return; + + self.debug('Unhandled rejection:\n\n' + error.stack); throw error; }); return;