mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-24 15:11:03 +00:00
Improved logging
This commit is contained in:
parent
7b1007fc0b
commit
f23894674d
1 changed files with 5 additions and 1 deletions
|
@ -481,7 +481,11 @@ public class EmailService implements AutoCloseable {
|
||||||
authenticator.refreshToken(true);
|
authenticator.refreshToken(true);
|
||||||
connect(host, port, auth, user, factory);
|
connect(host, port, auth, user, factory);
|
||||||
} catch (Exception ex1) {
|
} catch (Exception ex1) {
|
||||||
Log.e(ex1);
|
Throwable cause = ex1.getCause();
|
||||||
|
if (cause == null)
|
||||||
|
Log.e(ex1);
|
||||||
|
else
|
||||||
|
Log.e(new Throwable(ex1.getMessage() + " error=" + cause.getMessage(), ex1));
|
||||||
String msg = ex.getMessage();
|
String msg = ex.getMessage();
|
||||||
if (auth == AUTH_TYPE_GMAIL &&
|
if (auth == AUTH_TYPE_GMAIL &&
|
||||||
msg != null && msg.endsWith("Invalid credentials (Failure)"))
|
msg != null && msg.endsWith("Invalid credentials (Failure)"))
|
||||||
|
|
Loading…
Reference in a new issue