Reduced logging

pull/209/head
M66B 2 years ago
parent 57490ee901
commit 9dbc889fae

@ -19,6 +19,8 @@ package eu.faircode.email;
Copyright 2018-2022 by Marcel Bokhorst (M66B) Copyright 2018-2022 by Marcel Bokhorst (M66B)
*/ */
import static android.system.OsConstants.ETIMEDOUT;
import android.content.Context; import android.content.Context;
import android.net.ConnectivityManager; import android.net.ConnectivityManager;
import android.net.DnsResolver; import android.net.DnsResolver;
@ -26,6 +28,7 @@ import android.net.LinkProperties;
import android.net.Network; import android.net.Network;
import android.net.NetworkInfo; import android.net.NetworkInfo;
import android.os.Build; import android.os.Build;
import android.system.ErrnoException;
import androidx.annotation.NonNull; import androidx.annotation.NonNull;
@ -150,8 +153,7 @@ public class DnsHelper {
@Override @Override
public void onError(@NonNull DnsResolver.DnsException e) { public void onError(@NonNull DnsResolver.DnsException e) {
try { try {
Log.w(e); ex = new IOException(e.getMessage(), e);
ex = new IOException(e.getMessage());
} finally { } finally {
sem.release(); sem.release();
} }
@ -172,7 +174,7 @@ public class DnsHelper {
Log.i("DNS answer=" + result.toString() + " flags=" + result.getHeader().printFlags()); Log.i("DNS answer=" + result.toString() + " flags=" + result.getHeader().printFlags());
return result; return result;
} else { } else {
Log.w(ex); Log.i(ex);
throw ex; throw ex;
} }
} }

Loading…
Cancel
Save