Skip to content

Commit

Permalink
Filter stack in debug output when using debug.stackTrace pref
Browse files Browse the repository at this point in the history
  • Loading branch information
dstillman committed Nov 28, 2017
1 parent a70a517 commit a854ce9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chrome/content/zotero/xpcom/debug.js
Expand Up @@ -139,7 +139,7 @@ Zotero.Debug = new function () {
}

if (stack) {
message += '\n' + Zotero.Debug.stackToString(stack);
message += '\n' + this.stackToString(stack);
}

if (_console || _consoleViewer) {
Expand Down Expand Up @@ -288,7 +288,7 @@ Zotero.Debug = new function () {
+ ':' + stack.lineNumber;
stack = stack.caller;
}
return str.substr(1);
return this.filterStack(str).substr(1);
};


Expand Down

0 comments on commit a854ce9

Please sign in to comment.