add trace support (#38)

* add basic support for sending console logs to OutputWindow

* add trace config setting

* standardise logs
This commit is contained in:
Dave Holoway
2018-11-11 17:57:32 +00:00
committed by GitHub
parent 8cc31476b3
commit de8abc62bc
5 changed files with 35 additions and 10 deletions

View File

@@ -40,7 +40,7 @@ var Deferred = exports.Deferred = function(p, parent) {
var faildef = $.Deferred(null, this);
var p = this._promise.catch(function(a) {
if (a.stack) {
console.error(a.stack);
util.E(a.stack);
a = [a];
}
if (this.def._context === null && this.def._parent)