1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-30 19:56:10 +00:00

Improved logging

This commit is contained in:
M66B 2022-02-01 09:45:01 +01:00
parent 22ceefc953
commit 03dd806c8d

View file

@ -545,7 +545,6 @@ public class EmailService implements AutoCloseable {
Log.w(ex);
}
EntityLog.log(context, "Connecting to " + main);
_connect(main, port, require_id, user, factory);
} catch (UnknownHostException ex) {
throw new MessagingException(ex.getMessage(), ex);
@ -686,6 +685,8 @@ public class EmailService implements AutoCloseable {
private void _connect(
InetAddress address, int port, boolean require_id, String user,
SSLSocketFactoryService factory) throws MessagingException {
EntityLog.log(context, "Connecting to " + address + ":" + port);
isession = Session.getInstance(properties, authenticator);
breadcrumbs = new RingBuffer<>(BREADCRUMBS_SIZE);