mirror of
https://github.com/keymanapp/keyman.git
synced 2026-10-16 19:07:33 +00:00
Merge pull request #13692 from keymanapp/fix/android/unknown-host-exception
fix(android): Downgrade UnknownHostException error to info
This commit is contained in:
commit
a6199ebef8
1 changed files with 4 additions and 0 deletions
|
|
@ -5,6 +5,7 @@ import java.io.IOException;
|
|||
import java.net.HttpURLConnection;
|
||||
import java.net.SocketTimeoutException;
|
||||
import java.net.URL;
|
||||
import java.net.UnknownHostException;
|
||||
|
||||
public final class Connection {
|
||||
private static final String TAG = "Connection";
|
||||
|
|
@ -103,6 +104,9 @@ public final class Connection {
|
|||
} catch (SocketTimeoutException e) {
|
||||
KMLog.LogBreadcrumb(TAG, "Connection.initialize timeout for: " + originalUrl, true);
|
||||
KMLog.LogInfo(TAG, "SocketTimeoutException");
|
||||
} catch (UnknownHostException e) {
|
||||
KMLog.LogBreadcrumb(TAG, "Connection.initialize could not resolve host: " + originalUrl, true);
|
||||
KMLog.LogInfo(TAG, "UnknownHostException");
|
||||
} catch (Exception e) {
|
||||
KMLog.LogException(TAG, "Initialization failed:", e);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue