Commit fd814e37 authored by Jonathan Klee's avatar Jonathan Klee
Browse files

Do not show notification for Google auth error

The Google address book sychronization sometimes fails to authenticate,
while the next one 2 minutes after works.

For now, we can hide this annoying notification to the user.
parent fcee1f26
Pipeline #192555 passed with stage
in 2 minutes and 5 seconds
......@@ -654,6 +654,13 @@ abstract class SyncManager<ResourceType: LocalResource<*>, out CollectionType: L
Logger.log.log(Level.SEVERE, "Not authorized anymore", e)
message = context.getString(R.string.sync_error_authentication_failed)
syncResult.stats.numAuthExceptions++
if (account.type.toLowerCase(Locale.getDefault()).contains("google")) {
/* TODO Investigate deeper why this exception sometimes happens
* https://gitlab.e.foundation/e/backlog/-/issues/3430
*/
Logger.log.log(Level.WARNING, "Authorization error. Do not notify the user")
return
}
}
is HttpException, is DavException -> {
Logger.log.log(Level.SEVERE, "HTTP/DAV exception", e)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment