mirror of
https://github.com/M66B/NetGuard.git
synced 2025-02-22 14:21:01 +00:00
Reduce logging
This commit is contained in:
parent
a2d6fc98f9
commit
088bb68eee
1 changed files with 4 additions and 3 deletions
|
@ -1648,7 +1648,7 @@ public class ServiceSinkhole extends VpnService implements SharedPreferences.OnS
|
||||||
if (version == 6 && !(iname instanceof Inet6Address))
|
if (version == 6 && !(iname instanceof Inet6Address))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
//if (dname != null)
|
if (dname != null)
|
||||||
Log.i(TAG, "Set filter " + key + " " + daddr + "/" + dresource + "=" + block);
|
Log.i(TAG, "Set filter " + key + " " + daddr + "/" + dresource + "=" + block);
|
||||||
|
|
||||||
boolean exists = mapUidIPFilters.get(key).containsKey(iname);
|
boolean exists = mapUidIPFilters.get(key).containsKey(iname);
|
||||||
|
@ -1659,6 +1659,7 @@ public class ServiceSinkhole extends VpnService implements SharedPreferences.OnS
|
||||||
Log.w(TAG, "Address conflict " + key + " " + daddr + "/" + dresource);
|
Log.w(TAG, "Address conflict " + key + " " + daddr + "/" + dresource);
|
||||||
} else if (exists) {
|
} else if (exists) {
|
||||||
mapUidIPFilters.get(key).get(iname).updateExpires(time + ttl);
|
mapUidIPFilters.get(key).get(iname).updateExpires(time + ttl);
|
||||||
|
if (dname != null)
|
||||||
Log.w(TAG, "Address updated " + key + " " + daddr + "/" + dresource);
|
Log.w(TAG, "Address updated " + key + " " + daddr + "/" + dresource);
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
|
|
Loading…
Reference in a new issue