Reduced logging

pull/200/head
M66B 4 years ago
parent 6c4fe61caf
commit 38762ef418

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

Loading…
Cancel
Save