mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 20:54:34 +00:00
Reduced logging
This commit is contained in:
parent
76e8794073
commit
10d957e7a9
2 changed files with 4 additions and 2 deletions
|
@ -471,6 +471,7 @@ public class Log {
|
|||
|
||||
if (ex instanceof IllegalStateException &&
|
||||
(no_internet.equals(ex.getMessage()) ||
|
||||
"Token refreshed".equals(ex.getMessage()) ||
|
||||
"Not connected".equals(ex.getMessage()) ||
|
||||
"This operation is not allowed on a closed folder".equals(ex.getMessage())))
|
||||
return false;
|
||||
|
@ -1504,7 +1505,8 @@ public class Log {
|
|||
return null;
|
||||
|
||||
if (ex instanceof IllegalStateException &&
|
||||
("Not connected".equals(ex.getMessage()) ||
|
||||
("Token refreshed".equals(ex.getMessage()) ||
|
||||
"Not connected".equals(ex.getMessage()) ||
|
||||
"This operation is not allowed on a closed folder".equals(ex.getMessage())))
|
||||
return null;
|
||||
}
|
||||
|
|
|
@ -143,7 +143,7 @@ public class ServiceAuthenticator extends Authenticator {
|
|||
Log.w(ex);
|
||||
}
|
||||
|
||||
throw new IllegalStateException("Token needs refresh");
|
||||
throw new IllegalStateException("Token refreshed");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue