1
0
Fork 0
mirror of https://github.com/Luzifer/gmail-manage.git synced 2024-12-22 20:11:21 +00:00

Switch to stackdriver logging

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-10-21 12:26:54 +02:00
parent 17a3384d6a
commit d3480f5c34
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E
2 changed files with 3 additions and 3 deletions

View file

@ -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]])
}
}

View file

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