mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-19 18:35:34 +00:00
Added logging
This commit is contained in:
parent
36d0a17dc4
commit
a1f665f9c2
1 changed files with 3 additions and 1 deletions
|
@ -364,8 +364,10 @@ public class EmailService implements AutoCloseable {
|
|||
try {
|
||||
ConnectivityManager cm = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);
|
||||
Network active = cm.getActiveNetwork();
|
||||
if (active != null)
|
||||
if (active != null) {
|
||||
EntityLog.log(context, "Binding to active network " + active);
|
||||
properties.put("fairemail.factory", active.getSocketFactory());
|
||||
}
|
||||
} catch (Throwable ex) {
|
||||
Log.e(ex);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue