去除调试日志
parent
c62c66edef
commit
90c29240e0
|
@ -134,18 +134,13 @@ public class ZLMRESTfulUtils {
|
||||||
}
|
}
|
||||||
File snapFile = new File(targetPath + "/" + fileName);
|
File snapFile = new File(targetPath + "/" + fileName);
|
||||||
FileOutputStream outStream = new FileOutputStream(snapFile);
|
FileOutputStream outStream = new FileOutputStream(snapFile);
|
||||||
ResponseBody responseBody = response.body();
|
|
||||||
if (responseBody != null) {
|
outStream.write(Objects.requireNonNull(response.body()).bytes());
|
||||||
outStream.write(responseBody.bytes());
|
|
||||||
}
|
|
||||||
outStream.close();
|
outStream.close();
|
||||||
} else {
|
} else {
|
||||||
logger.error(String.format("[ %s ]请求失败: %s %s", url, response.code(), response.message()));
|
logger.error(String.format("[ %s ]请求失败: %s %s", url, response.code(), response.message()));
|
||||||
}
|
}
|
||||||
ResponseBody responseBody = response.body();
|
Objects.requireNonNull(response.body()).close();
|
||||||
if (responseBody != null) {
|
|
||||||
responseBody.close();
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
logger.error(String.format("[ %s ]请求失败: %s %s", url, response.code(), response.message()));
|
logger.error(String.format("[ %s ]请求失败: %s %s", url, response.code(), response.message()));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue