mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-07 17:43:18 +02:00
Improved logging
This commit is contained in:
@@ -728,10 +728,10 @@ public class ConnectionHelper {
|
||||
LinkProperties props = cm.getLinkProperties(network);
|
||||
if (props != null && Objects.equals(ni.getName(), props.getInterfaceName())) {
|
||||
NetworkCapabilities caps = cm.getNetworkCapabilities(network);
|
||||
if (caps != null && caps.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET))
|
||||
boolean has = (caps != null && caps.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET));
|
||||
if (has)
|
||||
someInternet = true;
|
||||
else
|
||||
EntityLog.log(context, EntityLog.Type.Network, "Interface=" + ni + " provides no internet");
|
||||
EntityLog.log(context, EntityLog.Type.Network, "Interface=" + ni + " provides internet=" + has);
|
||||
}
|
||||
}
|
||||
} catch (Throwable ex) {
|
||||
|
||||
Reference in New Issue
Block a user