mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-26 14:32:42 +00:00
Quiet down excessive exception logging in debug builds
This commit is contained in:
parent
d6ba72032d
commit
531f73329d
@ -421,21 +421,18 @@ public class NvHTTP {
|
|||||||
|
|
||||||
private String openHttpConnectionToString(HttpUrl baseUrl, String path, String query, boolean enableReadTimeout) throws IOException {
|
private String openHttpConnectionToString(HttpUrl baseUrl, String path, String query, boolean enableReadTimeout) throws IOException {
|
||||||
try {
|
try {
|
||||||
if (verbose) {
|
|
||||||
LimeLog.info("Requesting URL: "+getCompleteUrl(baseUrl, path, query));
|
|
||||||
}
|
|
||||||
|
|
||||||
ResponseBody resp = openHttpConnection(baseUrl, path, query, enableReadTimeout);
|
ResponseBody resp = openHttpConnection(baseUrl, path, query, enableReadTimeout);
|
||||||
String respString = resp.string();
|
String respString = resp.string();
|
||||||
resp.close();
|
resp.close();
|
||||||
|
|
||||||
if (verbose) {
|
if (verbose && !path.equals("serverinfo")) {
|
||||||
LimeLog.info(getCompleteUrl(baseUrl, path, query)+" -> "+respString);
|
LimeLog.info(getCompleteUrl(baseUrl, path, query)+" -> "+respString);
|
||||||
}
|
}
|
||||||
|
|
||||||
return respString;
|
return respString;
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
if (verbose) {
|
if (verbose && !path.equals("serverinfo")) {
|
||||||
|
LimeLog.warning(getCompleteUrl(baseUrl, path, query)+" -> "+e.getMessage());
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user