去除调试日志

pull/243/head
648540858 2021-11-17 17:55:32 +08:00
parent c62c66edef
commit 90c29240e0
1 changed files with 3 additions and 8 deletions

View File

@ -134,18 +134,13 @@ public class ZLMRESTfulUtils {
}
File snapFile = new File(targetPath + "/" + fileName);
FileOutputStream outStream = new FileOutputStream(snapFile);
ResponseBody responseBody = response.body();
if (responseBody != null) {
outStream.write(responseBody.bytes());
}
outStream.write(Objects.requireNonNull(response.body()).bytes());
outStream.close();
} else {
logger.error(String.format("[ %s ]请求失败: %s %s", url, response.code(), response.message()));
}
ResponseBody responseBody = response.body();
if (responseBody != null) {
responseBody.close();
}
Objects.requireNonNull(response.body()).close();
} else {
logger.error(String.format("[ %s ]请求失败: %s %s", url, response.code(), response.message()));
}