Browse Source

去除调试日志

pull/243/head
648540858 3 years ago
parent
commit
90c29240e0
  1. 11
      src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMRESTfulUtils.java

11
src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMRESTfulUtils.java

@ -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()));
}

Loading…
Cancel
Save