Don't show "Running handler" for 'debug' handler during translation

This commit is contained in:
Dan Stillman 2017-08-22 02:32:43 +02:00 committed by Dan Stillman
parent 9209edd081
commit ffcf608de1

View file

@ -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) {