mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 12:44:42 +00:00
Reduced logging
This commit is contained in:
parent
fbce21dee8
commit
5bcff21119
2 changed files with 9 additions and 1 deletions
|
@ -1585,6 +1585,11 @@ public class Log {
|
|||
ex.getCause().getMessage().contains("User is authenticated but not connected"))
|
||||
return null;
|
||||
|
||||
if (ex instanceof MessagingException &&
|
||||
ex.getMessage() != null &&
|
||||
ex.getMessage().startsWith("OAuth refresh"))
|
||||
return null;
|
||||
|
||||
if (ex instanceof IOException &&
|
||||
ex.getCause() instanceof MessageRemovedException)
|
||||
return null;
|
||||
|
|
|
@ -2308,7 +2308,10 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
|||
} catch (Throwable ex) {
|
||||
last_fail = ex;
|
||||
iservice.dump(account.name);
|
||||
Log.e(account.name, ex);
|
||||
if (ex.getMessage() != null && ex.getMessage().startsWith("OAuth refresh"))
|
||||
Log.i(account.name, ex);
|
||||
else
|
||||
Log.e(account.name, ex);
|
||||
EntityLog.log(this, EntityLog.Type.Account, account,
|
||||
account.name + " connect " + ex + "\n" + android.util.Log.getStackTraceString(ex));
|
||||
db.account().setAccountError(account.id, Log.formatThrowable(ex));
|
||||
|
|
Loading…
Reference in a new issue