Skip to content

Commit

Permalink
Don't show "Running handler" for 'debug' handler during translation
Browse files Browse the repository at this point in the history
  • Loading branch information
dstillman committed Oct 5, 2017
1 parent 9209edd commit ffcf608
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion chrome/content/zotero/xpcom/translation/translate.js
Expand Up @@ -1101,7 +1101,9 @@ Zotero.Translate.Base.prototype = {

var handlers = this._handlers[type].slice();
for(var i=0, n=handlers.length; i<n; i++) {
Zotero.debug("Translate: Running handler "+i+" for "+type, 5);
if (type != 'debug') {
Zotero.debug(`Translate: Running handler ${i} for ${type}`, 5);
}
try {
returnValue = handlers[i].apply(null, args);
} catch(e) {
Expand Down

0 comments on commit ffcf608

Please sign in to comment.