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 {