mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-04 10:39:25 +00:00
Reduce logging
This commit is contained in:
parent
1e300cd8af
commit
fe630d9d7f
1 changed files with 8 additions and 2 deletions
|
@ -526,8 +526,14 @@ public class EmailService implements AutoCloseable {
|
|||
Throwable cause = ex1.getCause();
|
||||
if (cause == null)
|
||||
Log.e(ex1);
|
||||
else
|
||||
Log.e(new Throwable(ex1.getMessage() + " error=" + cause.getMessage(), ex1));
|
||||
else {
|
||||
String msg = cause.getMessage();
|
||||
// AADSTS70000: The provided value for the input parameter 'refresh_token' or 'assertion' is not valid. Trace ID: <guid> Correlation ID: <guid> Timestamp: <date time>
|
||||
if (msg != null && msg.contains("AADSTS70000"))
|
||||
Log.i(new Throwable(ex1.getMessage() + " error=" + msg, ex1));
|
||||
else
|
||||
Log.e(new Throwable(ex1.getMessage() + " error=" + msg, ex1));
|
||||
}
|
||||
|
||||
String msg = ex.getMessage();
|
||||
if (auth == AUTH_TYPE_GMAIL &&
|
||||
|
|
Loading…
Add table
Reference in a new issue