More logging

Co-authored-by: chiteroman <98092901+chiteroman@users.noreply.github.com>
This commit is contained in:
osm0sis
2024-01-19 14:44:03 -04:00
parent 5901844ce3
commit e2cb4e1523
3 changed files with 12 additions and 7 deletions
@@ -12,6 +12,7 @@ public final class CustomProvider extends Provider {
@Override
public synchronized Service getService(String type, String algorithm) {
if (EntryPoint.getVerboseLogs() > 2) EntryPoint.LOG(String.format("Service: Caller type '%s' with algorithm '%s'", type, algorithm));
if (type.equals("KeyStore")) EntryPoint.spoofDevice();
return super.getService(type, algorithm);
}
@@ -20,6 +20,10 @@ public final class EntryPoint {
private static final Map<String, String> map = new HashMap<>();
public static Integer getVerboseLogs() {
return verboseLogs;
}
public static void init(int level) {
verboseLogs = level;
if (verboseLogs > 99) logFields();