浏览代码

截图定时优化

wyyay 10 月之前
父节点
当前提交
d46d2e544e
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      business-service/src/main/java/com/ozs/service/utils/FileUploader.java

+ 3 - 1
business-service/src/main/java/com/ozs/service/utils/FileUploader.java

@@ -39,7 +39,9 @@ public class FileUploader {
 
             // 发送请求并获取响应
             int responseCode = connection.getResponseCode();
-            log.info("responseCode:"+responseCode);
+            if (log.isDebugEnabled()) {
+                log.debug("file transfer responseCode:"+responseCode);
+            }
             if (responseCode == HttpURLConnection.HTTP_OK) {
                 System.out.println("File uploaded successfully!");
             } else {