|
@@ -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 {
|