From d3480f5c34a87a4d5193e48246977db8df769c34 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Sun, 21 Oct 2018 12:26:54 +0200 Subject: [PATCH] Switch to stackdriver logging Signed-off-by: Knut Ahlers --- src/index.js | 4 ++-- src/lib.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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) }