diff --git a/src/index.js b/src/index.js index 5d8ccfb..af8edf9 100644 --- a/src/index.js +++ b/src/index.js @@ -37,12 +37,12 @@ function applyFilterDefinition() { for (let hash in presentFilters) { if (hash in definedFilters) continue Gmail.Users.Settings.Filters.remove("me", presentFilters[hash].id) - Logger.log(["Removed filter", presentFilters[hash]]) + console.log(["Removed filter", presentFilters[hash]]) } for (let hash in definedFilters) { if (hash in presentFilters) continue Gmail.Users.Settings.Filters.create(definedFilters[hash], "me") - Logger.log(["Created filter", definedFilters[hash]]) + console.log(["Created filter", definedFilters[hash]]) } } diff --git a/src/lib.js b/src/lib.js index 1962025..0feda5e 100644 --- a/src/lib.js +++ b/src/lib.js @@ -94,5 +94,5 @@ function trashByQuery(query) { } } while (threads.length > 0 && removedThreads < MAX_DELETE_PER_LOOP) - Logger.log('Removed %s threads for query "%s"', removedThreads, query) + console.log('Removed %d threads for query "%s"', removedThreads, query) }