Logs to debug issue with temporary unblock

See #390
This commit is contained in:
emanuele-f 2023-12-25 18:32:05 +01:00
parent 6942b252ea
commit e0112eaa3f
2 changed files with 5 additions and 3 deletions

View File

@ -1130,8 +1130,10 @@ public class CaptureService extends VpnService implements Runnable {
continue;
}
if(item.first == null) // termination request
if(item.first == null) { // termination request
Log.i(TAG, "Connection update thread exit requested");
break;
}
ConnectionDescriptor[] new_conns = item.first;
ConnectionUpdate[] conns_updates = item.second;

View File

@ -23,7 +23,7 @@ public class Blocklist extends MatchList {
public synchronized boolean unblockAppForMinutes(int uid, int minutes) {
Long old_val = mUidToGrace.put(uid, SystemClock.uptimeMillis() + (minutes * 60_000L));
Log.d(TAG, "Grace app: " + uid + " for " + minutes + " minutes (old: " + old_val + ")");
Log.i(TAG, "Grace app: " + uid + " for " + minutes + " minutes (old: " + old_val + ")");
return (old_val == null);
}
@ -36,7 +36,7 @@ public class Blocklist extends MatchList {
Map.Entry<Integer, Long> entry = iter.next();
if(now >= entry.getValue()) {
Log.d(TAG, "Grace period ended for app: " + entry.getKey());
Log.i(TAG, "Grace period ended for app: " + entry.getKey());
iter.remove();
changed = true;
}