Commit 8981f538 authored by Jonathan Klee's avatar Jonathan Klee
Browse files

Merge branch '3430-hide-sync-notification' into 'master'

Do not show notification for Google auth error

See merge request !49
parents fcee1f26 fd814e37
Pipeline #192728 passed with stage
in 3 minutes and 23 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