mirror of
https://github.com/Luzifer/gmail-manage.git
synced 2024-11-08 15:30:10 +00:00
Switch to stackdriver logging
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
17a3384d6a
commit
d3480f5c34
2 changed files with 3 additions and 3 deletions
|
@ -37,12 +37,12 @@ function applyFilterDefinition() {
|
||||||
for (let hash in presentFilters) {
|
for (let hash in presentFilters) {
|
||||||
if (hash in definedFilters) continue
|
if (hash in definedFilters) continue
|
||||||
Gmail.Users.Settings.Filters.remove("me", presentFilters[hash].id)
|
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) {
|
for (let hash in definedFilters) {
|
||||||
if (hash in presentFilters) continue
|
if (hash in presentFilters) continue
|
||||||
Gmail.Users.Settings.Filters.create(definedFilters[hash], "me")
|
Gmail.Users.Settings.Filters.create(definedFilters[hash], "me")
|
||||||
Logger.log(["Created filter", definedFilters[hash]])
|
console.log(["Created filter", definedFilters[hash]])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -94,5 +94,5 @@ function trashByQuery(query) {
|
||||||
}
|
}
|
||||||
} while (threads.length > 0 && removedThreads < MAX_DELETE_PER_LOOP)
|
} 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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue