Reduced logging

This commit is contained in:
M66B 2021-07-17 07:01:00 +02:00
parent 6c4fe61caf
commit 38762ef418
1 changed files with 11 additions and 5 deletions

View File

@ -81,12 +81,18 @@ public class Bimi {
selector = "default";
// Get DNS record
String txt = selector + "._bimi." + domain;
Log.i("BIMI fetch TXT=" + txt);
DnsHelper.DnsRecord[] records = DnsHelper.lookup(context, txt, "txt");
if (records.length == 0)
DnsHelper.DnsRecord[] records;
try {
String txt = selector + "._bimi." + domain;
Log.i("BIMI fetch TXT=" + txt);
records = DnsHelper.lookup(context, txt, "txt");
if (records.length == 0)
return null;
Log.i("BIMI got TXT=" + records[0].name);
} catch (Throwable ex) {
Log.i(ex);
return null;
Log.i("BIMI got TXT=" + records[0].name);
}
// Decode DNS record
Map<String, String> values = new HashMap<>();